mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-25 01:46:20 +00:00
Revert "Commented self presence handling #151"
This reverts commit 872726c5aa.
This commit is contained in:
@@ -343,13 +343,10 @@ _unavailable_handler(xmpp_conn_t * const conn,
|
||||
|
||||
if (strcmp(my_jid->barejid, from_jid->barejid) !=0) {
|
||||
prof_handle_contact_offline(from_jid->barejid, from_jid->resourcepart, status_str);
|
||||
/*
|
||||
} else {
|
||||
connection_remove_available_resource(from_jid->resourcepart);
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
jid_destroy(my_jid);
|
||||
jid_destroy(from_jid);
|
||||
|
||||
@@ -430,17 +427,14 @@ _available_handler(xmpp_conn_t * const conn,
|
||||
Resource *resource = resource_new(from_jid->resourcepart, presence,
|
||||
status_str, priority, caps_key);
|
||||
prof_handle_contact_online(from_jid->barejid, resource, last_activity);
|
||||
/*
|
||||
} else {
|
||||
// handle self presence
|
||||
resource_presence_t presence = resource_presence_from_string(show_str);
|
||||
Resource *resource = resource_new(from_jid->resourcepart, presence,
|
||||
status_str, priority, caps_key);
|
||||
connection_add_available_resource(resource);
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
jid_destroy(my_jid);
|
||||
jid_destroy(from_jid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user