Philipp Hörist pushed to branch master at gajim / gajim


Commits:
c321a691 by Philipp Hörist at 2023-05-10T23:40:00+02:00
refactor: OMEMO: Adpat to changed API

- - - - -


1 changed file:

- gajim/common/modules/omemo.py


Changes:

=====================================
gajim/common/modules/omemo.py
=====================================
@@ -547,7 +547,7 @@ def are_keys_missing(self, contact_jid: str) -> bool:
 
     def set_bundle(self, bundle: OMEMOBundle | None = None) -> None:
         if bundle is None:
-            bundle = self.backend.get_bundle()
+            bundle = self.backend.get_bundle(Namespace.OMEMO_TEMP)
         self._nbxmpp('OMEMO').set_bundle(bundle,
                                          self.backend.get_our_device())
 
@@ -564,7 +564,7 @@ def request_bundle(self, jid: str, device_id: int):
                            jid, device_id, bundle)
             return
 
-        self.backend.build_session(jid, device_id, bundle)
+        self.backend.build_session(jid, bundle)
         self._log.info('Session created for: %s', jid)
         # TODO: In MUC we should send a groupchat message
         self._send_key_transport_message('chat', jid, [device_id])



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/c321a6915ed670457be4f848b630bba3b1f14ae8

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/c321a6915ed670457be4f848b630bba3b1f14ae8
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

Reply via email to