diff --git a/lib/src/omemo/omemomanager.dart b/lib/src/omemo/omemomanager.dart index bf99a49..1f1816c 100644 --- a/lib/src/omemo/omemomanager.dart +++ b/lib/src/omemo/omemomanager.dart @@ -408,9 +408,12 @@ class OmemoManager { if (bundlesToFetch.isNotEmpty) { _log.finest('Fetching bundles $bundlesToFetch for $jid'); } - + + final device = await getDevice(); final newBundles = List.empty(growable: true); for (final id in bundlesToFetch) { + if (jid == device.jid && id == device.id) continue; + final bundle = await fetchDeviceBundleImpl(jid, id); if (bundle != null) newBundles.add(bundle); }