Compare commits
2 Commits
3825232ebe
...
de85ab7955
Author | SHA1 | Date | |
---|---|---|---|
de85ab7955 | |||
a08c654295 |
@ -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
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user