Dealt with online notifications when no show

This commit is contained in:
James Booth
2012-03-10 00:22:57 +00:00
parent bcef3b1a49
commit 2b743ea9ac
5 changed files with 73 additions and 65 deletions

View File

@@ -324,7 +324,7 @@ static int _jabber_presence_handler(xmpp_conn_t * const conn,
if (strcmp(short_jid, short_from) !=0) {
if (type == NULL) {// online
win_contact_online(short_from, show_str, status_str);
contact_list_add(short_from, show_str);
contact_list_add(short_from, show_str, status_str);
} else {// offline
win_contact_offline(short_from, show_str, status_str);
contact_list_remove(short_from);