Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwurstsalat <mailtrash@posteo.de>2022-08-26 18:38:27 +0300
committerwurstsalat <mailtrash@posteo.de>2022-08-26 18:38:27 +0300
commitf9a3eaad543d8236c8c1a473b16d6afd0c9e4985 (patch)
treebff4d5cc93b1c45916a93206123ce9b146241acd
parent8a6b117ae383248b077540c3bb3e398181357490 (diff)
fix: Chatstates: Don’t sent chatstate delayed to ourself
-rw-r--r--gajim/common/modules/chatstates.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/gajim/common/modules/chatstates.py b/gajim/common/modules/chatstates.py
index b97baca9e..0274aa722 100644
--- a/gajim/common/modules/chatstates.py
+++ b/gajim/common/modules/chatstates.py
@@ -253,6 +253,11 @@ class Chatstate(BaseModule):
# Used when we go from Composing -> Active after deleting all text
# from the Textview. We delay the Active state because maybe the
# User starts writing again.
+
+ # Don’t send chatstates to ourself
+ if self._con.get_own_jid().bare_match(contact.jid):
+ return
+
self.remove_delay_timeout(contact)
self._delay_timeout_ids[contact.jid] = GLib.timeout_add_seconds(
2, self.set_chatstate, contact, state)