diff --git a/src/chat_control.py b/src/chat_control.py index cb818ce92..5984298d1 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -2406,9 +2406,8 @@ class ChatControl(ChatControlBase): def _on_end_otr_menuitem_activate(self, widget): fjid = self.contact.get_full_jid() gajim.otr_module.otrl_message_disconnect( - self.session.conn.otr_userstates, - (gajim.otr_ui_ops, {'account': self.account, - 'urgent': True, 'session': self.session}), + self.session.conn.otr_userstates, (gajim.otr_ui_ops, + {'account': self.account, 'urgent': True}), gajim.get_jid_from_account(self.account).encode(), gajim.OTR_PROTO, fjid.encode()) gajim.otr_ui_ops.gajim_log(_('Private conversation with ' \ diff --git a/src/gajim.py b/src/gajim.py index a592ffdd6..a7203d445 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -375,9 +375,6 @@ class OtrlMessageAppOps: # disconnect from OTR sessions before quitting stanza = XmppMessage(to = recipient, body = message, typ='chat') - if 'session' in opdata: - stanza.setThread(opdata['session'].thread_id) - gajim.connections[opdata['account']].connection. \ send(stanza, now = True) return