check that pq last-resort prekeys, if submitted, match device list

This commit is contained in:
Jonathan Klabunde Tomer
2023-08-24 09:04:29 -07:00
committed by GitHub
parent ca05753a3e
commit 7237ae6c54

View File

@@ -434,11 +434,13 @@ public class AccountsManager {
Collections.emptySet());
// Check that all including master ID are in Pq pre-keys
DestinationDeviceValidator.validateCompleteDeviceList(
account,
pniSignedPreKeys.keySet(),
Collections.emptySet());
if (pniPqLastResortPreKeys != null) {
DestinationDeviceValidator.validateCompleteDeviceList(
account,
pniPqLastResortPreKeys.keySet(),
Collections.emptySet());
}
// Check that all devices are accounted for in the map of new PNI registration IDs
DestinationDeviceValidator.validateCompleteDeviceList(
account,