Skip to content

Commit da929f8

Browse files
committed
Fixed a bug where a modified bundle might not be uploaded correctly
1 parent 173692e commit da929f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

omemo/session_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2189,8 +2189,8 @@ async def handle_key_exchange(
21892189
if num_visible_pre_keys <= self.__pre_key_refill_threshold:
21902190
logging.getLogger(SessionManager.LOG_TAG).debug("Refilling pre keys.")
21912191
await backend.generate_pre_keys(100 - num_visible_pre_keys)
2192-
bundle = await backend.get_bundle(self.__own_bare_jid, self.__own_device_id)
21932192

2193+
bundle = await backend.get_bundle(self.__own_bare_jid, self.__own_device_id)
21942194
await self._upload_bundle(bundle)
21952195

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

0 commit comments

Comments
 (0)