From 772e5c493615d7bdb4275a921c4132d7fe9e8a3a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 5 Nov 2020 15:06:21 +0100 Subject: Move mentioned room to top again --- TODO | 3 ++- src/plugins/Matrix.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 307b50b..d6f7b7c 100644 --- a/TODO +++ b/TODO @@ -135,4 +135,5 @@ Handle matrix token being invalidated while running. Update upload limit if its updated on the server (can it be updated while the server is running?). Editing a reply removes reply formatting (both in body and formatted_body). Element also does this when you edit a reply twice. This breaks element mobile that is unable to display replied-to messages without correct formatting (doesn't fetch the replied-to message). Implement m.room.tombstone. -Show a marker when a room uses encryption. \ No newline at end of file +Show a marker when a room uses encryption. +Remove replied-to message text in room preview. That shows ignored users text and we want to see the reply message instead anyways. \ No newline at end of file diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index 410e4c6..baa3ec5 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -323,7 +323,7 @@ namespace QuickMedia { } static void sort_room_body_items(std::vector> &room_body_items) { - #if 0 + #if 1 std::sort(room_body_items.begin(), room_body_items.end(), [](const std::shared_ptr &body_item1, const std::shared_ptr &body_item2) { RoomData *room1 = static_cast(body_item1->userdata); RoomData *room2 = static_cast(body_item2->userdata); -- cgit v1.2.3