message_flags: Clarify name for toggle_starred_and_update_server.

This makes it clear that the function sends the update to the server,
not just toggling the UI or local data structures.
This commit is contained in:
Tim Abbott
2018-08-01 11:09:12 -07:00
parent 2fcc54ac14
commit 4b4d420a5f
4 changed files with 5 additions and 5 deletions

View File

@@ -181,7 +181,7 @@ exports.initialize = function () {
var message_id = rows.id($(this).closest(".message_row"));
var message = message_store.get(message_id);
message_flags.toggle_starred(message);
message_flags.toggle_starred_and_update_server(message);
});
$("#main_div").on("click", ".message_reaction", function (e) {