From ff85dfb6a9b58d6e5a25c614e7aa3e061c6a3e1f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 20 Aug 2021 00:54:13 +0200 Subject: 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 --- plugins/Matrix.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') 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>> room_notifications; + std::unordered_map>> room_notifications; }; class MatrixInviteUserPage : public Page { @@ -651,6 +651,7 @@ namespace QuickMedia { std::mutex invite_mutex; std::vector notifications; + std::unordered_set notifications_by_event_id; std::mutex notifications_mutex; std::thread sync_thread; -- cgit v1.2.3