diff options
author | Dan Williams <dcbw@redhat.com> | 2007-05-03 04:43:53 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2007-05-03 04:43:53 (GMT) |
commit | 66b721048183784ec54ac2dba2bae2f38a0e6998 (patch) | |
tree | 48f4cc7f60b58fda9b705ef431490390399d8c27 | |
parent | f0205fde5c8e06944f000a7bfb4dad0e9a4a9aac (diff) |
Ignore network properties for the owner when their jabber contact comes online
-rw-r--r-- | services/presence/server_plugin.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/services/presence/server_plugin.py b/services/presence/server_plugin.py index 63c0283..a6704a7 100644 --- a/services/presence/server_plugin.py +++ b/services/presence/server_plugin.py @@ -633,6 +633,13 @@ class ServerPlugin(gobject.GObject): def _contact_online(self, handle): """Handle a contact coming online""" self._online_contacts[handle] = None + if handle == self._conn[CONN_INTERFACE].GetSelfHandle(): + jid = self._conn[CONN_INTERFACE].InspectHandles(CONNECTION_HANDLE_TYPE_CONTACT, [handle])[0] + self._online_contacts[handle] = jid + # ignore network events for Owner property changes since those + # are handled locally + return + self._conn[CONN_INTERFACE_BUDDY_INFO].GetProperties(handle, reply_handler=lambda *args: self._contact_online_properties_cb(handle, *args), error_handler=lambda *args: self._contact_online_properties_error_cb(handle, *args)) |