Compare commits

..

2 Commits

Author SHA1 Message Date
de85ab7955 chore: Bump version
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2023-01-02 13:57:15 +01:00
a08c654295 feat: Do not fetch bundles for our own device 2023-01-02 13:56:22 +01:00
3 changed files with 9 additions and 2 deletions

View File

@ -42,3 +42,7 @@
- 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,9 +408,12 @@ 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.0 version: 0.4.1
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