message view: Move live update logic of stream name to message_store.

This commit is contained in:
Ryan Rehman
2020-07-27 03:09:32 +05:30
committed by Tim Abbott
parent 131a1dd54f
commit 15c5dadb73
6 changed files with 38 additions and 52 deletions

View File

@@ -212,6 +212,14 @@ exports.update_property = function (property, value, info) {
}
});
break;
case "stream_name":
exports.each((msg) => {
if (msg.stream_id && msg.stream_id === info.stream_id) {
msg.display_recipient = value;
msg.stream = value;
}
});
break;
}
};