From: Michael Gruenewald Date: Mon, 27 Aug 2018 15:04:53 +0000 (+0200) Subject: Hide own typing notifications X-Git-Tag: v1.2~14^2^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6af68dde3328ca37ce70ae900da34732e5bbbce4;p=pidgin-chime.git Hide own typing notifications Own typing notifications (which may appear from other devices) shouldn't end up in a bogus conversation with oneself. --- diff --git a/chime/chime-conversation.c b/chime/chime-conversation.c index e082816..a2cec06 100644 --- a/chime/chime-conversation.c +++ b/chime/chime-conversation.c @@ -295,6 +295,10 @@ static gboolean conv_typing_jugg_cb(ChimeConnection *cxn, gpointer _conv, JsonNo if (!node || !parse_string(node, "id", &from)) return FALSE; + /* Hide own typing notifications possibly coming from other devices */ + if (g_strcmp0(from, priv->profile_id) == 0) + return FALSE; + ChimeContact *contact = g_hash_table_lookup(priv->contacts.by_id, from); if (!contact) return FALSE;