mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -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_chat, account->priority_online, account->priority_away,
|
||||||
account->priority_xa, account->priority_dnd);
|
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 *resources = jabber_get_available_resources();
|
||||||
GList *ordered_resources = NULL;
|
GList *ordered_resources = NULL;
|
||||||
|
|
||||||
@ -1436,7 +1438,7 @@ cons_show_account(ProfAccount *account)
|
|||||||
|
|
||||||
ordered_resources = g_list_next(ordered_resources);
|
ordered_resources = g_list_next(ordered_resources);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user