edit: Hide emoji reactions when in message edit or view source mode.

This also entails displaying them when the editing mode ends.

Fixes #3870.
This commit is contained in:
Philip Skomorokhov
2017-03-08 18:53:57 +03:00
committed by Tim Abbott
parent dd52291fa5
commit e3fa42f833

View File

@@ -156,6 +156,7 @@ function timer_text(seconds_left) {
}
function edit_message(row, raw_content) {
row.find(".message_reactions").hide();
var content_top = row.find('.message_content')[0]
.getBoundingClientRect().top;
@@ -354,6 +355,7 @@ exports.end = function (row) {
if (row !== undefined) {
current_msg_list.hide_edit_topic(row);
}
row.find(".message_reactions").show();
};
exports.maybe_show_edit = function (row, id) {