aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}