aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-08-20 00:54:13 +0200
committerdec05eba <dec05eba@protonmail.com>2021-08-20 00:54:13 +0200
commitff85dfb6a9b58d6e5a25c614e7aa3e061c6a3e1f (patch)
tree0f93e1efc7577bfa0fc8ab65b55edebddb56b79c /plugins
parent40909b91afb18a1195031e3f570be0c38b58d127 (diff)
List all notifications in notifications page (including the ones we get after starting up qm). This was caused by notifications body being overwritten with cache when navigating to it
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Matrix.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp
index 0d29821..1566212 100644
--- a/plugins/Matrix.hpp
+++ b/plugins/Matrix.hpp
@@ -495,7 +495,7 @@ namespace QuickMedia {
Matrix *matrix;
Body *notifications_body;
MatrixRoomsPage *all_rooms_page;
- std::unordered_map<RoomData*, std::vector<std::shared_ptr<BodyItem>>> room_notifications;
+ std::unordered_map<std::string, std::vector<std::shared_ptr<BodyItem>>> room_notifications;
};
class MatrixInviteUserPage : public Page {
@@ -651,6 +651,7 @@ namespace QuickMedia {
std::mutex invite_mutex;
std::vector<MatrixNotification> notifications;
+ std::unordered_set<std::string> notifications_by_event_id;
std::mutex notifications_mutex;
std::thread sync_thread;