popovers: Avoid passing message to actions popover template.

We instead get the specific fields from message
that we use.  This is particularly helpful
for subject -> topic migration; we no longer
have to account for "subject" fields in
client-side templates.
This commit is contained in:
Steve Howell
2018-12-22 18:43:09 +00:00
committed by Tim Abbott
parent c293e37237
commit 3fc8597119
4 changed files with 25 additions and 30 deletions

View File

@@ -404,7 +404,10 @@ exports.toggle_actions_popover = function (element, id) {
var should_display_delete_option = message_edit.get_deletability(message);
var args = {
message: message,
message_id: message.id,
historical: message.historical,
stream_id: message.stream_id,
topic: util.get_message_topic(message),
use_edit_icon: use_edit_icon,
editability_menu_item: editability_menu_item,
can_mute_topic: can_mute_topic,