fix observer crash

This commit is contained in:
vivabelarus 2023-12-28 01:47:23 +03:00
parent b1cf110def
commit bfeb053422
No known key found for this signature in database
GPG key ID: 0D2119CE32E33D2C

View file

@ -44,7 +44,7 @@ public class VerificationUpdatesChecker implements NotificationCenter.Notificati
}
public void checkUpdate() {
Utilities.globalQueue.postRunnable(() -> {
AndroidUtilities.runOnUIThread(() -> {
boolean observersAdded = false;
for (VerificationStorage storage : VerificationRepository.getInstance().getStorages()) {
if (!force && Math.abs(System.currentTimeMillis() - storage.lastCheckTime) < checkDelay * 1000) {