Don't allow editing of in-flight locally delivered messages

(imported from commit 771ba4910a8f8e50803baa5f7ec75208077ed2dd)
This commit is contained in:
Leo Franchi 2014-01-02 12:55:44 -06:00
parent 883122b129
commit 34722de1da
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ exports.toggle_actions_popover = function (element, id) {
var elt = $(element); var elt = $(element);
if (elt.data('popover') === undefined) { if (elt.data('popover') === undefined) {
var message = current_msg_list.get(id); var message = current_msg_list.get(id);
var can_edit = message.sent_by_me && !feature_flags.disable_message_editing; var can_edit = message.sent_by_me && message.local_id === undefined && !feature_flags.disable_message_editing;
var can_mute_topic = var can_mute_topic =
message.stream && message.stream &&
message.subject && message.subject &&