recent_topics: Update stored message id of locally echoed messages.

This fixes the bug that message was undefined since we used to store
locally echoed message id and were not updating it after new message
id for the same message was received from the server.
This commit is contained in:
Aman Agrawal
2020-05-28 13:18:58 +05:30
committed by Tim Abbott
parent 35f584e5ef
commit e6611089fd
3 changed files with 55 additions and 0 deletions

View File

@@ -272,6 +272,7 @@ exports.reify_message_id = function (local_id, server_id) {
message_store.reify_message_id(opts);
notifications.reify_message_id(opts);
recent_topics.reify_message_id_if_available(opts);
};
exports.process_from_server = function (messages) {