diff options
author | Marvin W <git@larma.de> | 2017-03-12 22:23:25 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2017-03-12 22:23:25 +0100 |
commit | 22c9c53b1db8b4ff6d49e5fa0406a96773c14d50 (patch) | |
tree | 319b5e32c0edaee29cde0be2228b97599262c1a4 /main/src | |
parent | bd1f116b3a57b803e2be4dc92474937f1f824fe4 (diff) | |
download | dino-22c9c53b1db8b4ff6d49e5fa0406a96773c14d50.tar.gz dino-22c9c53b1db8b4ff6d49e5fa0406a96773c14d50.zip |
Drop libuuid dependency, uuid generation is not that complicated...
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/ui/conversation_selector/list.vala | 4 |
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;}); |