From f4a02cabfd7452ed13b9c7b2e8b20ea5886768c8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 18 Aug 2021 20:48:01 +0200 Subject: Matrix: only move to next selected notification if not the first one is selected --- src/plugins/Matrix.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index c5c7921..8c7c884 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -1091,7 +1091,8 @@ namespace QuickMedia { auto body_item = notification_to_body_item(notifications_body, notification); room_notifications[notification.room].push_back(body_item); notifications_body->prepend_item(body_item); - notifications_body->select_next_item(); + if(notifications_body->get_selected_item() > 0) + notifications_body->select_next_item(); } // TODO: Only loop unread items -- cgit v1.2.3