aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Lionel <lionel@les-miquelots.net>2023-12-06 02:32:08 +0100
committerMiquel Lionel <lionel@les-miquelots.net>2023-12-06 02:32:08 +0100
commit75c76e33bde1238a474eee7ac09acd3036bcbdd6 (patch)
tree9a103752296d56a5c6292b38b0fbdd90b3422ee4
parent85ea7e50083be4be11a675c83835e2f1f957d0dc (diff)
downloaddino-75c76e33bde1238a474eee7ac09acd3036bcbdd6.tar.gz
dino-75c76e33bde1238a474eee7ac09acd3036bcbdd6.zip
Fix " Dino does not add own account to roster" (#696)fix-adding-yourself-to-roster
should close #696
-rw-r--r--main/src/ui/add_conversation/roster_list.vala8
1 files changed, 7 insertions, 1 deletions
diff --git a/main/src/ui/add_conversation/roster_list.vala b/main/src/ui/add_conversation/roster_list.vala
index bb338ce5..7e0b963f 100644
--- a/main/src/ui/add_conversation/roster_list.vala
+++ b/main/src/ui/add_conversation/roster_list.vala
@@ -34,7 +34,13 @@ protected class RosterList {
foreach (ulong handler_id in handler_ids) stream_interactor.get_module(RosterManager.IDENTITY).disconnect(handler_id);
});
- foreach (Account a in accounts) fetch_roster_items(a);
+ foreach (Account a in accounts){
+ ListRow own_account_row = new ListRow.from_jid(stream_interactor, a.bare_jid, a, accounts.size > 1);
+ ListBoxRow own_account_lbrow = new ListBoxRow() { child=own_account_row };
+ list_box.append(own_account_lbrow);
+
+ fetch_roster_items(a);
+ }
}
private void on_removed_roster_item(Account account, Jid jid, Roster.Item roster_item) {