aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-01-10 21:09:44 +0100
committerdec05eba <dec05eba@protonmail.com>2023-01-10 21:09:44 +0100
commite08d5f4fd0a913d49c182c7aebec863da6e6d026 (patch)
treeeaeadd17f39f38a54ee18e10ec08c5c8498b2c20 /plugins
parenteb6295751d07b8ee173317234daee8acf6b07a5f (diff)
Matrix: show unread notification on initial sync using notifications api (there might be very old messages that we haven't read)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Matrix.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp
index 1452af1..7c2103c 100644
--- a/plugins/Matrix.hpp
+++ b/plugins/Matrix.hpp
@@ -318,6 +318,8 @@ namespace QuickMedia {
virtual void add_invite(const std::string &room_id, const Invite &invite) = 0;
virtual void remove_invite(const std::string &room_id) = 0;
+ virtual void add_unread_notification(MatrixNotification notification) = 0;
+
virtual void add_user(MatrixEventUserInfo user_info) = 0;
virtual void remove_user(MatrixEventUserInfo user_info) = 0;
virtual void set_user_info(MatrixEventUserInfo user_info) = 0;
@@ -346,6 +348,8 @@ namespace QuickMedia {
void add_invite(const std::string &room_id, const Invite &invite) override;
void remove_invite(const std::string &room_id) override;
+ void add_unread_notification(MatrixNotification notification) override;
+
void add_user(MatrixEventUserInfo user_info) override;
void remove_user(MatrixEventUserInfo user_info) override;
void set_user_info(MatrixEventUserInfo user_info) override;