From 22c9c53b1db8b4ff6d49e5fa0406a96773c14d50 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Sun, 12 Mar 2017 22:23:25 +0100 Subject: Drop libuuid dependency, uuid generation is not that complicated... --- main/src/ui/conversation_selector/list.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main/src/ui/conversation_selector') 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;}); -- cgit v1.2.3-70-g09d2