Skip to content
Snippets Groups Projects
Commit 945b7baa authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Only handle event if it belongs to the control

parent cbab10be
No related branches found
No related tags found
No related merge requests found
...@@ -2020,6 +2020,10 @@ class GroupchatControl(ChatControlBase): ...@@ -2020,6 +2020,10 @@ class GroupchatControl(ChatControlBase):
def _message_sent(self, obj): def _message_sent(self, obj):
if not obj.message: if not obj.message:
return return
if obj.account != self.account:
return
if obj.jid != self.room_jid:
return
# we'll save sent message text when we'll receive it in # we'll save sent message text when we'll receive it in
# _nec_gc_message_received # _nec_gc_message_received
self.last_sent_msg = obj.stanza_id self.last_sent_msg = obj.stanza_id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment