feat: Do not fetch bundles for our own device
This commit is contained in:
parent
3825232ebe
commit
a08c654295
@ -409,8 +409,11 @@ class OmemoManager {
|
||||
_log.finest('Fetching bundles $bundlesToFetch for $jid');
|
||||
}
|
||||
|
||||
final device = await getDevice();
|
||||
final newBundles = List<OmemoBundle>.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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user