-
-
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
Conversation
a01b829
to
fbcc1c7
Compare
fbcc1c7
to
5f9c68c
Compare
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'.
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.
Change the 'thumbs-up' emoji in EmojiPickerView from text to a button which on pressing can toggle the reaction on current message.
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.
This ensures there is no scrolling if the pop-up contains an edit box.
5f9c68c
to
a512681
Compare
@kaustubh-nair This was towards fixing #559? Was this blocked on something, or lost track of towards the end of GSoC? |
@neiljp This was blocked because of PopUpView refactor, but still according to the current design it is not yet compatible with it. It requires some refactoring of Popupview for it to work properly. |
Heads up @kaustubh-nair, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the |
No description provided.