Fix auto joining chats on connection
Only set the connection status to online when all chat info was fetched, to avoid annoying chat creation requests on startup.
This commit is contained in:
parent
4341bf0804
commit
fa9b331b39
1 changed files with 1 additions and 1 deletions
|
@ -360,6 +360,7 @@ static void on_get_dialog_list_done (struct tgl_state *TLS, void *callback_extra
|
|||
break;
|
||||
}
|
||||
}
|
||||
purple_connection_set_state (conn->gc, PURPLE_CONNECTED);
|
||||
}
|
||||
|
||||
void on_user_get_info (struct tgl_state *TLS, void *info_data, int success, struct tgl_user *U) {
|
||||
|
@ -390,7 +391,6 @@ void on_ready (struct tgl_state *TLS) {
|
|||
debug ("on_ready().");
|
||||
connection_data *conn = TLS->ev_base;
|
||||
|
||||
purple_connection_set_state (conn->gc, PURPLE_CONNECTED);
|
||||
purple_connection_set_display_name (conn->gc, purple_account_get_username (conn->pa));
|
||||
purple_blist_add_account (conn->pa);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue