aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-10-04 22:38:33 +0200
committerdec05eba <dec05eba@protonmail.com>2020-10-04 22:38:33 +0200
commitcfef90021917df0052bb49e9e35298260e7ca38c (patch)
treeb922f32067a37d717d5df512e92c064ccae0753a /plugins
parent5267b66a8822205187399290f44f27d720b01dda (diff)
Matrix: remove initial delay when entering room
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Matrix.hpp6
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);