1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Show roster after roster received

This commit is contained in:
James Booth 2014-11-20 00:32:33 +00:00
parent 20fa96325d
commit 9d9ffb08cf
3 changed files with 7 additions and 0 deletions

View File

@ -122,7 +122,11 @@ handle_login_account_success(char *account_name)
log_info("%s logged in successfully", account->jid);
account_free(account);
}
void
handle_roster_received(void)
{
if (prefs_get_boolean(PREF_ROSTER)) {
ui_show_roster();
}

View File

@ -116,5 +116,6 @@ void handle_muc_occupant_online(const char * const room, const char * const nick
const char * const show_str, const char * const status_str);
void handle_roster_update(const char * const barejid, const char * const name,
GSList *groups, const char * const subscription, gboolean pending_out);
void handle_roster_received(void);
#endif

View File

@ -325,6 +325,8 @@ _roster_result_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
item = xmpp_stanza_get_next(item);
}
handle_roster_received();
resource_presence_t conn_presence = accounts_get_login_presence(jabber_get_account_name());
presence_update(conn_presence, NULL, 0);
}