From f8b54139f89ef21eb025defd17a5655e41fb9c03 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 21 Oct 2020 04:57:21 +0200 Subject: Matrix: sort rooms by mention/unread messages fix multiple messages being marker as mentioning us if the latest mention is close to another mention that we have already read. Do not go to bottom when sending a message or uploading media. Do not scroll to bottom unless we have the last message selected, the tab is the messages tab and the window is focused. --- plugins/Matrix.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp index a48cf69..f24a08f 100644 --- a/plugins/Matrix.hpp +++ b/plugins/Matrix.hpp @@ -74,9 +74,9 @@ namespace QuickMedia { std::string get_user_read_marker(std::shared_ptr &user); // Ignores duplicates - void prepend_messages_reverse(std::vector> new_messages); + void prepend_messages_reverse(const std::vector> &new_messages); // Ignores duplicates - void append_messages(std::vector> new_messages); + void append_messages(const std::vector> &new_messages); std::shared_ptr get_message_by_id(const std::string &id); -- cgit v1.2.3