From 23d6ac5c8749d622b4fec08ad24960f6c70c48ad Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 8 Oct 2012 14:31:15 +0100 Subject: [PATCH 6/7] TpConnection: ignore self-handle changes that aren't really changes --- telepathy-glib/connection.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/telepathy-glib/connection.c b/telepathy-glib/connection.c index 83f04ff..dc70c61 100644 --- a/telepathy-glib/connection.c +++ b/telepathy-glib/connection.c @@ -790,6 +790,14 @@ on_self_contact_changed (TpConnection *self, return; } + if (self->priv->last_known_self_handle == self_handle && + !tp_strdiff (self_id, self->priv->last_known_self_id)) + { + DEBUG ("Ignoring no-op self-handle change to %u '%s'", + self_handle, self_id); + return; + } + DEBUG ("SelfHandleChanged to %u '%s'", self_handle, self_id); self->priv->last_known_self_handle = self_handle; g_free (self->priv->last_known_self_id); -- 1.7.10.4