aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-01-14 13:39:54 +0100
committerdec05eba <dec05eba@protonmail.com>2021-01-14 13:39:54 +0100
commit6a6d55fa1ba3797fb854ed2335129917f58c9d6a (patch)
treeb356bff5b4eef94366cd06f59639051ced27a976 /src/plugins
parent366551b1123a13a055711b4d74c7950750bc4b94 (diff)
asdf
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Matrix.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp
index df72fc9..4ed6409 100644
--- a/src/plugins/Matrix.cpp
+++ b/src/plugins/Matrix.cpp
@@ -474,6 +474,8 @@ namespace QuickMedia {
if(last_message_it != last_message_by_room.end()) {
if(last_new_message->timestamp > last_message_it->second->timestamp)
last_message_it->second = last_new_message;
+ else
+ last_new_message = last_message_it->second;
} else {
last_message_by_room[room] = last_new_message;
}