mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-08-02 19:16:21 +00:00
Only show resources for connected account
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user