Skip to content
Snippets Groups Projects
Commit d2a62f39 authored by js's avatar js
Browse files

[Kjell Braden] Fix a crash with OTR.

parent 7d02042f
No related branches found
No related tags found
No related merge requests found
......@@ -162,14 +162,16 @@ class MessageControl:
new_msg = gajim.otr_module.otrl_message_sending(
gajim.connections[self.account].otr_userstates,
(gajim.otr_ui_ops, d),
gajim.get_jid_from_account(self.account).encode(), gajim.OTR_PROTO,
self.contact.get_full_jid().encode(), message.encode(), None)
gajim.get_jid_from_account(self.account).encode(),
gajim.OTR_PROTO, self.contact.get_full_jid().encode(),
message.encode(), None, (gajim.otr_add_appdata, self.account))
context = gajim.otr_module.otrl_context_find(
gajim.connections[self.account].otr_userstates,
self.contact.get_full_jid().encode(),
gajim.get_jid_from_account(self.account).encode(),
gajim.OTR_PROTO, 1)[0]
gajim.OTR_PROTO, 1, (gajim.otr_add_appdata,
self.account))[0]
# we send all because inject_message can filter on HTML stuff then
gajim.otr_module.otrl_message_fragment_and_send(
......
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