mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Only show resources for connected account
This commit is contained in:
parent
502d7dc9fe
commit
dc30eeacad
@ -1358,6 +1358,8 @@ cons_show_account(ProfAccount *account)
|
||||
account->priority_chat, account->priority_online, account->priority_away,
|
||||
account->priority_xa, account->priority_dnd);
|
||||
|
||||
if ((jabber_get_connection_status() == JABBER_CONNECTED) &&
|
||||
(g_strcmp0(jabber_get_account_name(), account->name) == 0)) {
|
||||
GList *resources = jabber_get_available_resources();
|
||||
GList *ordered_resources = NULL;
|
||||
|
||||
@ -1436,7 +1438,7 @@ cons_show_account(ProfAccount *account)
|
||||
|
||||
ordered_resources = g_list_next(ordered_resources);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user