From e0446af12552ed725c0c970375daea63aeaa00d1 Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Wed, 8 Nov 2023 00:49:38 +0100 Subject: [PATCH] Fix left pane banner colors & add username integrity check to queue --- stylesheets/components/LeftPaneBanner.scss | 2 +- ts/services/usernameIntegrity.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/stylesheets/components/LeftPaneBanner.scss b/stylesheets/components/LeftPaneBanner.scss index deaf28d0ef..303a5a2648 100644 --- a/stylesheets/components/LeftPaneBanner.scss +++ b/stylesheets/components/LeftPaneBanner.scss @@ -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; } diff --git a/ts/services/usernameIntegrity.ts b/ts/services/usernameIntegrity.ts index 65841af508..e7c115a18c 100644 --- a/ts/services/usernameIntegrity.ts +++ b/ts/services/usernameIntegrity.ts @@ -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 { try { - await this.check(); + await storageJobQueue(() => this.check()); this.backOff.reset(); await window.storage.put('usernameLastIntegrityCheck', Date.now());