Compare commits

..

No commits in common. "de85ab79555408264f2108f630801c412790f906" and "3825232ebec927002c1bb39b8728c363bfb5138b" have entirely different histories.

3 changed files with 2 additions and 9 deletions

View File

@ -42,7 +42,3 @@
- Implement queued access to the ratchets inside the `OmemoManager`. - Implement queued access to the ratchets inside the `OmemoManager`.
- Implement heartbeat messages. - Implement heartbeat messages.
- [BREAKING] Rename `Device` to `OmemoDevice`. - [BREAKING] Rename `Device` to `OmemoDevice`.
## 0.4.1
- Fix fetching the current device and building a ratchet session with it when encrypting for our own JID

View File

@ -408,12 +408,9 @@ class OmemoManager {
if (bundlesToFetch.isNotEmpty) { if (bundlesToFetch.isNotEmpty) {
_log.finest('Fetching bundles $bundlesToFetch for $jid'); _log.finest('Fetching bundles $bundlesToFetch for $jid');
} }
final device = await getDevice();
final newBundles = List<OmemoBundle>.empty(growable: true); final newBundles = List<OmemoBundle>.empty(growable: true);
for (final id in bundlesToFetch) { for (final id in bundlesToFetch) {
if (jid == device.jid && id == device.id) continue;
final bundle = await fetchDeviceBundleImpl(jid, id); final bundle = await fetchDeviceBundleImpl(jid, id);
if (bundle != null) newBundles.add(bundle); if (bundle != null) newBundles.add(bundle);
} }

View File

@ -1,6 +1,6 @@
name: omemo_dart name: omemo_dart
description: An XMPP library independent OMEMO library description: An XMPP library independent OMEMO library
version: 0.4.1 version: 0.4.0
homepage: https://github.com/PapaTutuWawa/omemo_dart homepage: https://github.com/PapaTutuWawa/omemo_dart
publish_to: https://git.polynom.me/api/packages/PapaTutuWawa/pub publish_to: https://git.polynom.me/api/packages/PapaTutuWawa/pub