Philipp Hörist pushed to branch master at gajim / gajim
Commits:
be5318ee by lovetox at 2022-05-02T20:21:27+02:00
fix: Chatstates: Ignore non chat messages
- - - - -
1 changed file:
- gajim/common/modules/chatstates.py
Changes:
=====================================
gajim/common/modules/chatstates.py
=====================================
@@ -129,11 +129,14 @@ def _presence_received(self,
contact.notify('chatstate-update')
def _process_chatstate(self, _con, _stanza, properties):
+ if properties.type.is_error:
+ return
+
if not properties.has_chatstate:
return
if (properties.is_self_message or
- properties.type.is_groupchat or
+ not properties.type.is_chat or
properties.is_mam_message or
properties.is_carbon_message and properties.carbon.is_sent):
return
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/be5318ee7f7bd1bf7eb8eef71b0921c9cbdd27c9
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/be5318ee7f7bd1bf7eb8eef71b0921c9cbdd27c9
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits