aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
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);