A set of fixes and upgrades
* writeToDownloads: Add missing await * Remove window.isFocused() - not used anywhere! * Update typescript, p-queue, make necessary changes to fix build * Slow down sender certificate retries with no existing cert * Slow down signed prekey refreshes when unlinked - 5s -> 5m * Update protobufjs to 4.1.2
This commit is contained in:
@@ -35,7 +35,7 @@ function initialize({ events, storage, navigator, logger }) {
|
||||
const now = Date.now();
|
||||
const certificate = storage.get('senderCertificate');
|
||||
if (!certificate) {
|
||||
setTimeoutForNextRun(now);
|
||||
setTimeoutForNextRun(scheduledTime || now);
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -83,7 +83,7 @@ function initialize({ events, storage, navigator, logger }) {
|
||||
scheduleNextRotation();
|
||||
} catch (error) {
|
||||
logger.error(
|
||||
'refreshSenderCertificate: Get failed. Trying again in two minutes...',
|
||||
'refreshSenderCertificate: Get failed. Trying again in five minutes...',
|
||||
error && error.stack ? error.stack : error
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user