]> www.infradead.org Git - pidgin-chime.git/commitdiff
Hide own typing notifications
authorMichael Gruenewald <gruenem@amazon.com>
Mon, 27 Aug 2018 15:04:53 +0000 (17:04 +0200)
committerMichael Gruenewald <gruenem@amazon.com>
Mon, 27 Aug 2018 15:04:53 +0000 (17:04 +0200)
Own typing notifications (which may appear from other devices) shouldn't
end up in a bogus conversation with oneself.

chime/chime-conversation.c

index e082816e5aa5128a2a193a57c135fb4966d61132..a2cec0658209372f228a0fbe746e539d57772e73 100644 (file)
@@ -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;