diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-10-04 22:38:33 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-10-04 22:38:33 +0200 |
commit | cfef90021917df0052bb49e9e35298260e7ca38c (patch) | |
tree | b922f32067a37d717d5df512e92c064ccae0753a /plugins | |
parent | 5267b66a8822205187399290f44f27d720b01dda (diff) |
Matrix: remove initial delay when entering room
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Matrix.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
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<UserInfo> &user, const std::string &event_id); std::string get_user_read_marker(std::shared_ptr<UserInfo> &user); - void prepend_messages_reverse(std::vector<std::shared_ptr<Message>> new_messages); - void append_messages(std::vector<std::shared_ptr<Message>> new_messages); + // Ignores duplicates, returns the number of inserted elements + size_t prepend_messages_reverse(std::vector<std::shared_ptr<Message>> new_messages); + // Ignores duplicates, returns the number of inserted elements + size_t append_messages(std::vector<std::shared_ptr<Message>> new_messages); std::shared_ptr<Message> get_message_by_id(const std::string &id); |