aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-11-08 16:35:30 +0100
committerdec05eba <dec05eba@protonmail.com>2020-11-08 16:35:30 +0100
commitf8748d14ea11d6d53ad46aee2832180daf05fb77 (patch)
tree9a3e0d04042f347675a5db8f827f3ec961417ab0 /plugins
parent240767f49483672466de638e93aaa8cb47f2f854 (diff)
Matrix: show last message sorted by timestamp in room description
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Matrix.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp
index e4e1583..0248e09 100644
--- a/plugins/Matrix.hpp
+++ b/plugins/Matrix.hpp
@@ -250,6 +250,7 @@ namespace QuickMedia {
std::mutex pending_room_messages_mutex;
std::unordered_map<RoomData*, std::vector<Notification>> unread_notifications;
+ std::map<RoomData*, std::shared_ptr<Message>> last_message_by_room;
};
class MatrixRoomsPage : public Page {