aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_selector
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/ui/conversation_selector')
-rw-r--r--main/src/ui/conversation_selector/list.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/ui/conversation_selector/list.vala b/main/src/ui/conversation_selector/list.vala
index ea2f9622..804cfad3 100644
--- a/main/src/ui/conversation_selector/list.vala
+++ b/main/src/ui/conversation_selector/list.vala
@@ -23,10 +23,10 @@ public class List : ListBox {
set_sort_func(sort);
ChatInteraction.get_instance(stream_interactor).conversation_read.connect((conversation) => {
- Idle.add(() => {rows[conversation].mark_read(); return false;});
+ Idle.add(() => {if (rows.has_key(conversation)) rows[conversation].mark_read(); return false;});
});
ChatInteraction.get_instance(stream_interactor).conversation_unread.connect((conversation) => {
- Idle.add(() => {rows[conversation].mark_unread(); return false;});
+ Idle.add(() => {if (rows.has_key(conversation)) rows[conversation].mark_unread(); return false;});
});
ConversationManager.get_instance(stream_interactor).conversation_activated.connect((conversation) => {
Idle.add(() => {add_conversation(conversation); return false;});