From 6a6d55fa1ba3797fb854ed2335129917f58c9d6a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 14 Jan 2021 13:39:54 +0100 Subject: asdf --- src/plugins/Matrix.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins') 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; } -- cgit v1.2.3