Skip to content

Comments

Add ability to star chat messages#310

Open
Torgen wants to merge 4 commits intocjb:masterfrom
Torgen:starred-messages
Open

Add ability to star chat messages#310
Torgen wants to merge 4 commits intocjb:masterfrom
Torgen:starred-messages

Conversation

@Torgen
Copy link
Contributor

@Torgen Torgen commented Feb 3, 2018

Starred messages in the main chat appear at the top of the blackboard.
Starred messages in puzzle chat rooms appear in the puzzle info pane.
Fixes #281.
Fixes #197.

Starred messages in the main chat appear at the top of the blackboard.
Starred messages in puzzle chat rooms appear in the top-right pane.
Fixes #281.
@Torgen Torgen changed the title Add ability to star messages. Add ability to star chat messages Feb 26, 2018
@Torgen
Copy link
Contributor Author

Torgen commented Jul 13, 2018

Note that messages appear in the order they were posted, not the order they were starred. The catch with the latter is I might need to interleave between oldmessages and messages, whereas currently I can just put the old messages first.

# optional server-side follow-up info
followup: (( model.followupStyle() is 'server') and m.followup) or false
email: nickEmail m.nick
body: ->
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I know this looks weird, but it works. In fact I didn't notice I had forgot the 'do' until looking at it just now.

Torgen added 2 commits January 8, 2019 21:52
When there's more than one .bb-chat-messages, the query selector finds the starred messages first.
We never search for all the unstarred ones, and this will make inserts faster.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant