Skip to content

Commit

Permalink
VENOM-454: Restore conference titles
Browse files Browse the repository at this point in the history
* Prepare for saved conferences in toxcore
  • Loading branch information
naxuroqa committed Dec 3, 2018
1 parent 0d87253 commit 855df03
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/tox/ToxAdapterConferenceListener.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 855df03

Please sign in to comment.