Fix left pane banner colors & add username integrity check to queue

This commit is contained in:
Fedor Indutny 2023-11-08 00:49:38 +01:00 committed by GitHub
parent 8d56ba4b40
commit e0446af125
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -14,7 +14,7 @@
color: $color-gray-75;
}
@include dark-theme {
background-color: $color-gray-60;
background-color: $color-gray-75;
color: $color-gray-15;
}

View file

@ -6,6 +6,7 @@ import { DAY } from '../util/durations';
import { drop } from '../util/drop';
import { BackOff, FIBONACCI_TIMEOUTS } from '../util/BackOff';
import { checkForUsername } from '../util/lookupConversationWithoutServiceId';
import { storageJobQueue } from '../util/JobQueue';
import * as log from '../logging/log';
import { resolveUsernameByLink } from './username';
@ -42,7 +43,7 @@ class UsernameIntegrityService {
private async safeCheck(): Promise<void> {
try {
await this.check();
await storageJobQueue(() => this.check());
this.backOff.reset();
await window.storage.put('usernameLastIntegrityCheck', Date.now());