From cfef90021917df0052bb49e9e35298260e7ca38c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 4 Oct 2020 22:38:33 +0200 Subject: Matrix: remove initial delay when entering room --- plugins/Matrix.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp index de7d9b8..4d7bc11 100644 --- a/plugins/Matrix.hpp +++ b/plugins/Matrix.hpp @@ -46,8 +46,10 @@ namespace QuickMedia { void set_user_read_marker(std::shared_ptr &user, const std::string &event_id); std::string get_user_read_marker(std::shared_ptr &user); - void prepend_messages_reverse(std::vector> new_messages); - void append_messages(std::vector> new_messages); + // Ignores duplicates, returns the number of inserted elements + size_t prepend_messages_reverse(std::vector> new_messages); + // Ignores duplicates, returns the number of inserted elements + size_t append_messages(std::vector> new_messages); std::shared_ptr get_message_by_id(const std::string &id); -- cgit v1.2.3