From 855df0363f78b9fbcb33bc94abc2656b81592154 Mon Sep 17 00:00:00 2001 From: naxuroqa Date: Mon, 3 Dec 2018 13:13:38 +0100 Subject: [PATCH] VENOM-454: Restore conference titles * Prepare for saved conferences in toxcore --- src/tox/ToxAdapterConferenceListener.vala | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/tox/ToxAdapterConferenceListener.vala b/src/tox/ToxAdapterConferenceListener.vala index 2e8e644..9585147 100644 --- a/src/tox/ToxAdapterConferenceListener.vala +++ b/src/tox/ToxAdapterConferenceListener.vala @@ -52,7 +52,13 @@ namespace Venom { friends = session.get_friends(); var chatlist = session.conference_get_chatlist(); foreach (var conference_number in chatlist) { - on_conference_new(conference_number, ""); + string title = ""; + try { + title = session.conference_get_title(conference_number); + } catch (ToxError e) { + //ignore + } + on_conference_new(conference_number, title); } }