mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
reaction.js: Update toggle_reaction().
Created get_selected_emoji() function. toggle_reaction() now doesn't require emoji_name and automatically looks for a selected_emoji if possible.
This commit is contained in:
@@ -282,6 +282,11 @@ exports.process_enter_key = function (e) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (popovers.reactions_popped()) {
|
||||
reactions.toggle_reaction(current_msg_list.selected_id());
|
||||
return true;
|
||||
}
|
||||
|
||||
if (exports.is_editing_stream_name(e)) {
|
||||
$(e.target).parent().find(".checkmark").click();
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user