aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-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