mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Users added to contact list when no precense notification
The user is added from the roster
This commit is contained in:
parent
579594a8bf
commit
65022b3c2f
@ -301,6 +301,7 @@ _connection_handler(xmpp_conn_t * const conn,
|
|||||||
|
|
||||||
jabber_conn.conn_status = JABBER_CONNECTED;
|
jabber_conn.conn_status = JABBER_CONNECTED;
|
||||||
jabber_conn.presence = PRESENCE_ONLINE;
|
jabber_conn.presence = PRESENCE_ONLINE;
|
||||||
|
jabber_roster_request();
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// received close stream response from server after disconnect
|
// received close stream response from server after disconnect
|
||||||
|
@ -177,6 +177,11 @@ prof_handle_roster(GSList *roster)
|
|||||||
cons_show("%s", entry->jid);
|
cons_show("%s", entry->jid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if contact not in contact list add them as offline
|
||||||
|
if (find_contact(entry->jid) == NULL) {
|
||||||
|
contact_list_add(entry->jid, "offline", NULL);
|
||||||
|
}
|
||||||
|
|
||||||
roster = g_slist_next(roster);
|
roster = g_slist_next(roster);
|
||||||
|
|
||||||
win_page_off();
|
win_page_off();
|
||||||
|
Loading…
Reference in New Issue
Block a user