diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-06-25 13:11:25 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-06-25 13:11:29 +0200 |
commit | 26134d3601c3c139aff71123b09bf18ba35b6450 (patch) | |
tree | 715e15cc4107a7aaf188b78b322e3fbe6cf5c073 /plugins | |
parent | 38202de4f953fca28aa884246ced0aadf0d25a4d (diff) |
Matrix: do not show kick/ban notification when restarting quickmedia (do not show notification on cache load)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Matrix.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp index 568357a..2e25d69 100644 --- a/plugins/Matrix.hpp +++ b/plugins/Matrix.hpp @@ -242,7 +242,7 @@ namespace QuickMedia { virtual ~MatrixDelegate() = default; virtual void join_room(RoomData *room) = 0; - virtual void leave_room(RoomData *room, LeaveType leave_type, const std::string &reason) = 0; + virtual void leave_room(RoomData *room, LeaveType leave_type, const std::string &reason, bool is_cache) = 0; // Note: calling |room| methods inside this function is not allowed virtual void room_add_tag(RoomData *room, const std::string &tag) = 0; @@ -276,7 +276,7 @@ namespace QuickMedia { MatrixQuickMedia(Program *program, Matrix *matrix, MatrixRoomsPage *rooms_page, MatrixRoomTagsPage *room_tags_page, MatrixInvitesPage *invites_page, MatrixNotificationsPage *notifications_page); void join_room(RoomData *room) override; - void leave_room(RoomData *room, LeaveType leave_type, const std::string &reason) override; + void leave_room(RoomData *room, LeaveType leave_type, const std::string &reason, bool is_cache) override; void room_add_tag(RoomData *room, const std::string &tag) override; void room_remove_tag(RoomData *room, const std::string &tag) override; void room_add_new_messages(RoomData *room, const Messages &messages, bool is_initial_sync, bool sync_is_cache, MessageDirection message_dir) override; |