Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Adds messages and chat command #384

Merged
merged 2 commits into from
Dec 5, 2018
Merged

Adds messages and chat command #384

merged 2 commits into from
Dec 5, 2018

Conversation

sanderpick
Copy link
Member

  • messages is like comments without a target, added to top level of thread
  • leverages messages and sub commands into chat 💯

@sanderpick sanderpick self-assigned this Dec 5, 2018
@sanderpick
Copy link
Member Author

Couldn't resist. Took a break from deploying. Will pick it up tomorrow.

@sanderpick
Copy link
Member Author

Check it out... threads chat, recovering from a member going offline. This feels like the culmination of the threads and cafe protocols.

screenshot 2018-12-04 20 51 14

Copy link
Member

@carsonfarmer carsonfarmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is dang cool dude. love that the bits and pieces are coming together like this. so nice.

cmd/blocks.go Show resolved Hide resolved
cmd/sub.go Show resolved Hide resolved
return nil
}

func callSub(threadId string, types []string) (<-chan core.ThreadUpdate, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeh this is nice, glad its proving useful outside of demos!

cmd/sub.go Show resolved Hide resolved
@@ -132,6 +133,12 @@ func (a *api) Start() {
}
}

messages := v0.Group("/messages")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this feels a bit weird having the two separate paths like this? not sure how else it should be done... is this pretty standard practice?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, agreed. same for files. my thought there was it's nice to be able to paginate across all files / messages... but maybe not needed. can revisit.

core/api_messages.go Show resolved Hide resolved
cmd/chat.go Show resolved Hide resolved
@sanderpick
Copy link
Member Author

Cheers for the look @carsonfarmer !

@sanderpick sanderpick merged commit 19e8647 into master Dec 5, 2018
@sanderpick sanderpick deleted the sander/messages branch December 5, 2018 16:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants