-
-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Add reactions to messages #707
WIP: Add reactions to messages #707
Commits on Oct 21, 2020
-
model: Use stored emojis to fetch emoji data for reactions.
Presently, the emoji code and type for 'thumbs-up' is hard-coded in the react_to_message method. This commit uses the stored emoji data(in emoji_names.py) to look-up the emoji code. This change makes it easier to use model.react_to_message, in the future, for emojis other than the currently supported 'thumbs-up'.
Configuration menu - View commit details
-
Copy full SHA for a825d8e - Browse repository at this point
Copy the full SHA a825d8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5061998 - Browse repository at this point
Copy the full SHA 5061998View commit details -
views: Add EmojiPickerView to add reactions to messages.
A new pop-up EmojiPickerView will be triggered on pressing `:` key on a message. This view will be used to search and select the emoji that a user wants to add to a message. This commit includes a minimal view that only includes the 'thumbs-up' emoji. Buttons for this emoji, and a search bar for more emojis will be added in subsequent commits. Tests added.
Configuration menu - View commit details
-
Copy full SHA for 168b3be - Browse repository at this point
Copy the full SHA 168b3beView commit details -
views: buttons: Toggle reaction on pressing emoji button.
Change the 'thumbs-up' emoji in EmojiPickerView from text to a button which on pressing can toggle the reaction on current message.
Configuration menu - View commit details
-
Copy full SHA for ad092e1 - Browse repository at this point
Copy the full SHA ad092e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for dfa56db - Browse repository at this point
Copy the full SHA dfa56dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f76d93 - Browse repository at this point
Copy the full SHA 5f76d93View commit details -
views: model: Support adding first 10 reactions to messages.
Instead of 'thumbs-up', the user can add the first 10 reactions from EMOJI_NAMES. A search box will be added subsequently to support adding other reactions. This includes '+1', al alternative to 'thumbs-up' so this commit should not cause any reduction in available features available to the user.
Configuration menu - View commit details
-
Copy full SHA for 4e235ef - Browse repository at this point
Copy the full SHA 4e235efView commit details -
views: Allow scrolling in PopUpView only if not in editor mode.
This ensures there is no scrolling if the pop-up contains an edit box.
Configuration menu - View commit details
-
Copy full SHA for b862b3c - Browse repository at this point
Copy the full SHA b862b3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 566f291 - Browse repository at this point
Copy the full SHA 566f291View commit details -
Configuration menu - View commit details
-
Copy full SHA for 82a6f52 - Browse repository at this point
Copy the full SHA 82a6f52View commit details -
Configuration menu - View commit details
-
Copy full SHA for a512681 - Browse repository at this point
Copy the full SHA a512681View commit details