aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-08-18 20:48:01 +0200
committerdec05eba <dec05eba@protonmail.com>2021-08-18 20:48:01 +0200
commitf4a02cabfd7452ed13b9c7b2e8b20ea5886768c8 (patch)
treec4ec178d1b669f72d17cab2f6eaf1e3bb08643b4
parent24335ceccbf81e9a1bf49c1a2878c8ee31c63b69 (diff)
Matrix: only move to next selected notification if not the first one is selected
-rw-r--r--src/plugins/Matrix.cpp3
1 files changed, 2 insertions, 1 deletions
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