Skip to content

Commit

Permalink
Fixed a bug where a modified bundle might not be uploaded correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Syndace committed Jul 9, 2024
1 parent 173692e commit da929f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omemo/session_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -2189,8 +2189,8 @@ async def handle_key_exchange(
if num_visible_pre_keys <= self.__pre_key_refill_threshold:
logging.getLogger(SessionManager.LOG_TAG).debug("Refilling pre keys.")
await backend.generate_pre_keys(100 - num_visible_pre_keys)
bundle = await backend.get_bundle(self.__own_bare_jid, self.__own_device_id)

bundle = await backend.get_bundle(self.__own_bare_jid, self.__own_device_id)
await self._upload_bundle(bundle)

# Send an empty message if necessary to avoid staleness and to "complete" the handshake in case this
Expand Down

0 comments on commit da929f8

Please sign in to comment.