mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
PS 1569 update on command listener (#3647)
* Add windows to platform utils service Note, this will result in conflicts with several in-flight PRs, but is necessary for following commits. * Add necessary background service factories * Simplify autofill command * Remove noop event service
This commit is contained in:
@@ -247,7 +247,8 @@ export default class MainBackground {
|
|||||||
|
|
||||||
return promise.then((result) => result.response === "unlocked");
|
return promise.then((result) => result.response === "unlocked");
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
window
|
||||||
);
|
);
|
||||||
this.i18nService = new I18nService(BrowserApi.getUILanguage(window));
|
this.i18nService = new I18nService(BrowserApi.getUILanguage(window));
|
||||||
this.encryptService = new EncryptService(this.cryptoFunctionService, this.logService, true);
|
this.encryptService = new EncryptService(this.cryptoFunctionService, this.logService, true);
|
||||||
|
|||||||
@@ -0,0 +1,37 @@
|
|||||||
|
import { AutofillService as AbstractAutoFillService } from "../../services/abstractions/autofill.service";
|
||||||
|
import AutofillService from "../../services/autofill.service";
|
||||||
|
|
||||||
|
import { cipherServiceFactory, CipherServiceInitOptions } from "./cipher-service.factory";
|
||||||
|
import { EventServiceInitOptions, eventServiceFactory } from "./event-service.factory";
|
||||||
|
import { CachedServices, factory, FactoryOptions } from "./factory-options";
|
||||||
|
import { logServiceFactory, LogServiceInitOptions } from "./log-service.factory";
|
||||||
|
import { stateServiceFactory, StateServiceInitOptions } from "./state-service.factory";
|
||||||
|
import { totpServiceFacotry, TotpServiceInitOptions } from "./totp-service.factory";
|
||||||
|
|
||||||
|
type AutoFillServiceOptions = FactoryOptions;
|
||||||
|
|
||||||
|
export type AutoFillServiceInitOptions = AutoFillServiceOptions &
|
||||||
|
CipherServiceInitOptions &
|
||||||
|
StateServiceInitOptions &
|
||||||
|
TotpServiceInitOptions &
|
||||||
|
EventServiceInitOptions &
|
||||||
|
LogServiceInitOptions;
|
||||||
|
|
||||||
|
export function autofillServiceFactory(
|
||||||
|
cache: { autofillService?: AbstractAutoFillService } & CachedServices,
|
||||||
|
opts: AutoFillServiceInitOptions
|
||||||
|
): Promise<AbstractAutoFillService> {
|
||||||
|
return factory(
|
||||||
|
cache,
|
||||||
|
"autofillService",
|
||||||
|
opts,
|
||||||
|
async () =>
|
||||||
|
new AutofillService(
|
||||||
|
await cipherServiceFactory(cache, opts),
|
||||||
|
await stateServiceFactory(cache, opts),
|
||||||
|
await totpServiceFacotry(cache, opts),
|
||||||
|
await eventServiceFactory(cache, opts),
|
||||||
|
await logServiceFactory(cache, opts)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -44,7 +44,7 @@ export function cipherServiceFactory(
|
|||||||
await apiServiceFactory(cache, opts),
|
await apiServiceFactory(cache, opts),
|
||||||
await fileUploadServiceFactory(cache, opts),
|
await fileUploadServiceFactory(cache, opts),
|
||||||
await i18nServiceFactory(cache, opts),
|
await i18nServiceFactory(cache, opts),
|
||||||
opts.cipherServiceOptions.searchServiceFactory === undefined
|
opts.cipherServiceOptions?.searchServiceFactory === undefined
|
||||||
? () => cache.searchService
|
? () => cache.searchService
|
||||||
: opts.cipherServiceOptions.searchServiceFactory,
|
: opts.cipherServiceOptions.searchServiceFactory,
|
||||||
await logServiceFactory(cache, opts),
|
await logServiceFactory(cache, opts),
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
import { EventService as AbstractEventService } from "@bitwarden/common/abstractions/event.service";
|
||||||
|
import { EventService } from "@bitwarden/common/services/event.service";
|
||||||
|
|
||||||
|
import { apiServiceFactory, ApiServiceInitOptions } from "./api-service.factory";
|
||||||
|
import { cipherServiceFactory, CipherServiceInitOptions } from "./cipher-service.factory";
|
||||||
|
import { FactoryOptions, CachedServices, factory } from "./factory-options";
|
||||||
|
import { logServiceFactory, LogServiceInitOptions } from "./log-service.factory";
|
||||||
|
import {
|
||||||
|
organizationServiceFactory,
|
||||||
|
OrganizationServiceInitOptions,
|
||||||
|
} from "./organization-service.factory";
|
||||||
|
import { stateServiceFactory, StateServiceInitOptions } from "./state-service.factory";
|
||||||
|
|
||||||
|
type EventServiceOptions = FactoryOptions;
|
||||||
|
|
||||||
|
export type EventServiceInitOptions = EventServiceOptions &
|
||||||
|
ApiServiceInitOptions &
|
||||||
|
CipherServiceInitOptions &
|
||||||
|
StateServiceInitOptions &
|
||||||
|
LogServiceInitOptions &
|
||||||
|
OrganizationServiceInitOptions;
|
||||||
|
|
||||||
|
export function eventServiceFactory(
|
||||||
|
cache: { eventService?: AbstractEventService } & CachedServices,
|
||||||
|
opts: EventServiceInitOptions
|
||||||
|
): Promise<AbstractEventService> {
|
||||||
|
return factory(
|
||||||
|
cache,
|
||||||
|
"eventService",
|
||||||
|
opts,
|
||||||
|
async () =>
|
||||||
|
new EventService(
|
||||||
|
await apiServiceFactory(cache, opts),
|
||||||
|
await cipherServiceFactory(cache, opts),
|
||||||
|
await stateServiceFactory(cache, opts),
|
||||||
|
await logServiceFactory(cache, opts),
|
||||||
|
await organizationServiceFactory(cache, opts)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -28,7 +28,8 @@ export function platformUtilsServiceFactory(
|
|||||||
new BrowserPlatformUtilsService(
|
new BrowserPlatformUtilsService(
|
||||||
await messagingServiceFactory(cache, opts),
|
await messagingServiceFactory(cache, opts),
|
||||||
opts.platformUtilsServiceOptions.clipboardWriteCallback,
|
opts.platformUtilsServiceOptions.clipboardWriteCallback,
|
||||||
opts.platformUtilsServiceOptions.biometricCallback
|
opts.platformUtilsServiceOptions.biometricCallback,
|
||||||
|
opts.platformUtilsServiceOptions.win
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
import { TotpService as AbstractTotpService } from "@bitwarden/common/abstractions/totp.service";
|
||||||
|
import { TotpService } from "@bitwarden/common/services/totp.service";
|
||||||
|
|
||||||
|
import {
|
||||||
|
cryptoFunctionServiceFactory,
|
||||||
|
CryptoFunctionServiceInitOptions,
|
||||||
|
} from "./crypto-function-service.factory";
|
||||||
|
import { CachedServices, factory, FactoryOptions } from "./factory-options";
|
||||||
|
import { logServiceFactory, LogServiceInitOptions } from "./log-service.factory";
|
||||||
|
|
||||||
|
type TotpServiceOptions = FactoryOptions;
|
||||||
|
|
||||||
|
export type TotpServiceInitOptions = TotpServiceOptions &
|
||||||
|
CryptoFunctionServiceInitOptions &
|
||||||
|
LogServiceInitOptions;
|
||||||
|
|
||||||
|
export function totpServiceFacotry(
|
||||||
|
cache: { totpService?: AbstractTotpService } & CachedServices,
|
||||||
|
opts: TotpServiceInitOptions
|
||||||
|
): Promise<AbstractTotpService> {
|
||||||
|
return factory(
|
||||||
|
cache,
|
||||||
|
"totpService",
|
||||||
|
opts,
|
||||||
|
async () =>
|
||||||
|
new TotpService(
|
||||||
|
await cryptoFunctionServiceFactory(cache, opts),
|
||||||
|
await logServiceFactory(cache, opts)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,27 +1,15 @@
|
|||||||
|
import { SearchService } from "@bitwarden/common/abstractions/search.service";
|
||||||
import { AuthenticationStatus } from "@bitwarden/common/enums/authenticationStatus";
|
import { AuthenticationStatus } from "@bitwarden/common/enums/authenticationStatus";
|
||||||
import { StateFactory } from "@bitwarden/common/factories/stateFactory";
|
import { StateFactory } from "@bitwarden/common/factories/stateFactory";
|
||||||
import { GlobalState } from "@bitwarden/common/models/domain/globalState";
|
import { GlobalState } from "@bitwarden/common/models/domain/globalState";
|
||||||
import { AuthService } from "@bitwarden/common/services/auth.service";
|
|
||||||
import { CipherService } from "@bitwarden/common/services/cipher.service";
|
|
||||||
import { ConsoleLogService } from "@bitwarden/common/services/consoleLog.service";
|
|
||||||
import { EncryptService } from "@bitwarden/common/services/encrypt.service";
|
|
||||||
import { NoopEventService } from "@bitwarden/common/services/noopEvent.service";
|
|
||||||
import { SearchService } from "@bitwarden/common/services/search.service";
|
|
||||||
import { SettingsService } from "@bitwarden/common/services/settings.service";
|
|
||||||
import { StateMigrationService } from "@bitwarden/common/services/stateMigration.service";
|
|
||||||
import { WebCryptoFunctionService } from "@bitwarden/common/services/webCryptoFunction.service";
|
|
||||||
|
|
||||||
|
import { authServiceFactory } from "../background/service_factories/auth-service.factory";
|
||||||
|
import { autofillServiceFactory } from "../background/service_factories/autofill-service.factory";
|
||||||
|
import { CachedServices } from "../background/service_factories/factory-options";
|
||||||
|
import { logServiceFactory } from "../background/service_factories/log-service.factory";
|
||||||
|
import { BrowserApi } from "../browser/browserApi";
|
||||||
import { AutoFillActiveTabCommand } from "../commands/autoFillActiveTabCommand";
|
import { AutoFillActiveTabCommand } from "../commands/autoFillActiveTabCommand";
|
||||||
import { Account } from "../models/account";
|
import { Account } from "../models/account";
|
||||||
import { StateService as AbstractStateService } from "../services/abstractions/state.service";
|
|
||||||
import AutofillService from "../services/autofill.service";
|
|
||||||
import { BrowserCryptoService } from "../services/browserCrypto.service";
|
|
||||||
import BrowserLocalStorageService from "../services/browserLocalStorage.service";
|
|
||||||
import BrowserPlatformUtilsService from "../services/browserPlatformUtils.service";
|
|
||||||
import I18nService from "../services/i18n.service";
|
|
||||||
import { KeyGenerationService } from "../services/keyGeneration.service";
|
|
||||||
import { LocalBackedSessionStorageService } from "../services/localBackedSessionStorage.service";
|
|
||||||
import { StateService } from "../services/state.service";
|
|
||||||
|
|
||||||
export const onCommandListener = async (command: string, tab: chrome.tabs.Tab) => {
|
export const onCommandListener = async (command: string, tab: chrome.tabs.Tab) => {
|
||||||
switch (command) {
|
switch (command) {
|
||||||
@@ -32,100 +20,44 @@ export const onCommandListener = async (command: string, tab: chrome.tabs.Tab) =
|
|||||||
};
|
};
|
||||||
|
|
||||||
const doAutoFillLogin = async (tab: chrome.tabs.Tab): Promise<void> => {
|
const doAutoFillLogin = async (tab: chrome.tabs.Tab): Promise<void> => {
|
||||||
const logService = new ConsoleLogService(false);
|
const cachedServices: CachedServices = {};
|
||||||
|
const opts = {
|
||||||
const cryptoFunctionService = new WebCryptoFunctionService(self);
|
cryptoFunctionServiceOptions: {
|
||||||
|
win: self,
|
||||||
const storageService = new BrowserLocalStorageService();
|
},
|
||||||
|
encryptServiceOptions: {
|
||||||
const secureStorageService = new BrowserLocalStorageService();
|
logMacFailures: true,
|
||||||
|
},
|
||||||
const memoryStorageService = new LocalBackedSessionStorageService(
|
logServiceOptions: {
|
||||||
new EncryptService(cryptoFunctionService, logService, false),
|
isDev: false,
|
||||||
new KeyGenerationService(cryptoFunctionService)
|
},
|
||||||
);
|
platformUtilsServiceOptions: {
|
||||||
|
clipboardWriteCallback: () => Promise.resolve(),
|
||||||
const stateFactory = new StateFactory(GlobalState, Account);
|
biometricCallback: () => Promise.resolve(false),
|
||||||
|
win: self,
|
||||||
const stateMigrationService = new StateMigrationService(
|
},
|
||||||
storageService,
|
stateServiceOptions: {
|
||||||
secureStorageService,
|
stateFactory: new StateFactory(GlobalState, Account),
|
||||||
stateFactory
|
},
|
||||||
);
|
stateMigrationServiceOptions: {
|
||||||
|
stateFactory: new StateFactory(GlobalState, Account),
|
||||||
const stateService: AbstractStateService = new StateService(
|
},
|
||||||
storageService,
|
apiServiceOptions: {
|
||||||
secureStorageService,
|
logoutCallback: () => Promise.resolve(),
|
||||||
memoryStorageService, // AbstractStorageService
|
},
|
||||||
logService,
|
keyConnectorServiceOptions: {
|
||||||
stateMigrationService,
|
logoutCallback: () => Promise.resolve(),
|
||||||
stateFactory
|
},
|
||||||
);
|
i18nServiceOptions: {
|
||||||
|
systemLanguage: BrowserApi.getUILanguage(self),
|
||||||
await stateService.init();
|
},
|
||||||
|
cipherServiceOptions: {
|
||||||
const platformUtils = new BrowserPlatformUtilsService(
|
searchServiceFactory: null as () => SearchService, // No dependence on search service
|
||||||
null, // MessagingService
|
},
|
||||||
null, // clipboardWriteCallback
|
};
|
||||||
null // biometricCallback
|
const logService = await logServiceFactory(cachedServices, opts);
|
||||||
);
|
const authService = await authServiceFactory(cachedServices, opts);
|
||||||
|
const autofillService = await autofillServiceFactory(cachedServices, opts);
|
||||||
const cryptoService = new BrowserCryptoService(
|
|
||||||
cryptoFunctionService,
|
|
||||||
null, // AbstractEncryptService
|
|
||||||
platformUtils,
|
|
||||||
logService,
|
|
||||||
stateService
|
|
||||||
);
|
|
||||||
|
|
||||||
const settingsService = new SettingsService(stateService);
|
|
||||||
|
|
||||||
const i18nService = new I18nService(chrome.i18n.getUILanguage());
|
|
||||||
|
|
||||||
await i18nService.init();
|
|
||||||
|
|
||||||
// Don't love this pt.1
|
|
||||||
let searchService: SearchService = null;
|
|
||||||
|
|
||||||
const cipherService = new CipherService(
|
|
||||||
cryptoService,
|
|
||||||
settingsService,
|
|
||||||
null, // ApiService
|
|
||||||
null, // FileUploadService,
|
|
||||||
i18nService,
|
|
||||||
() => searchService, // Don't love this pt.2
|
|
||||||
logService,
|
|
||||||
stateService
|
|
||||||
);
|
|
||||||
|
|
||||||
// Don't love this pt.3
|
|
||||||
searchService = new SearchService(cipherService, logService, i18nService);
|
|
||||||
|
|
||||||
// TODO: Remove this before we encourage anyone to start using this
|
|
||||||
const eventService = new NoopEventService();
|
|
||||||
|
|
||||||
const autofillService = new AutofillService(
|
|
||||||
cipherService,
|
|
||||||
stateService,
|
|
||||||
null, // TotpService
|
|
||||||
eventService,
|
|
||||||
logService
|
|
||||||
);
|
|
||||||
|
|
||||||
const authService = new AuthService(
|
|
||||||
cryptoService, // CryptoService
|
|
||||||
null, // ApiService
|
|
||||||
null, // TokenService
|
|
||||||
null, // AppIdService
|
|
||||||
platformUtils,
|
|
||||||
null, // MessagingService
|
|
||||||
logService,
|
|
||||||
null, // KeyConnectorService
|
|
||||||
null, // EnvironmentService
|
|
||||||
stateService,
|
|
||||||
null, // TwoFactorService
|
|
||||||
i18nService
|
|
||||||
);
|
|
||||||
|
|
||||||
const authStatus = await authService.getAuthStatus();
|
const authStatus = await authService.getAuthStatus();
|
||||||
if (authStatus < AuthenticationStatus.Unlocked) {
|
if (authStatus < AuthenticationStatus.Unlocked) {
|
||||||
|
|||||||
@@ -172,14 +172,10 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||||||
} else {
|
} else {
|
||||||
cipher = await this.cipherService.getLastUsedForUrl(tab.url, true);
|
cipher = await this.cipherService.getLastUsedForUrl(tab.url, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cipher == null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cipher.reprompt !== CipherRepromptType.None) {
|
if (cipher == null || cipher.reprompt !== CipherRepromptType.None) {
|
||||||
return;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const totpCode = await this.doAutoFill({
|
const totpCode = await this.doAutoFill({
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ describe("Browser Utils Service", () => {
|
|||||||
let browserPlatformUtilsService: BrowserPlatformUtilsService;
|
let browserPlatformUtilsService: BrowserPlatformUtilsService;
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
(window as any).matchMedia = jest.fn().mockReturnValueOnce({});
|
(window as any).matchMedia = jest.fn().mockReturnValueOnce({});
|
||||||
browserPlatformUtilsService = new BrowserPlatformUtilsService(null, null, null);
|
browserPlatformUtilsService = new BrowserPlatformUtilsService(null, null, null, self);
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
|
|||||||
@@ -19,7 +19,8 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
|
|||||||
constructor(
|
constructor(
|
||||||
private messagingService: MessagingService,
|
private messagingService: MessagingService,
|
||||||
private clipboardWriteCallback: (clipboardValue: string, clearMs: number) => void,
|
private clipboardWriteCallback: (clipboardValue: string, clearMs: number) => void,
|
||||||
private biometricCallback: () => Promise<boolean>
|
private biometricCallback: () => Promise<boolean>,
|
||||||
|
private win: Window & typeof globalThis
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
getDevice(): DeviceType {
|
getDevice(): DeviceType {
|
||||||
@@ -33,8 +34,8 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
|
|||||||
) {
|
) {
|
||||||
this.deviceCache = DeviceType.FirefoxExtension;
|
this.deviceCache = DeviceType.FirefoxExtension;
|
||||||
} else if (
|
} else if (
|
||||||
(self.opr && self.opr.addons) ||
|
(!!this.win.opr && !!opr.addons) ||
|
||||||
self.opera ||
|
!!this.win.opera ||
|
||||||
navigator.userAgent.indexOf(" OPR/") >= 0
|
navigator.userAgent.indexOf(" OPR/") >= 0
|
||||||
) {
|
) {
|
||||||
this.deviceCache = DeviceType.OperaExtension;
|
this.deviceCache = DeviceType.OperaExtension;
|
||||||
@@ -42,7 +43,7 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
|
|||||||
this.deviceCache = DeviceType.EdgeExtension;
|
this.deviceCache = DeviceType.EdgeExtension;
|
||||||
} else if (navigator.userAgent.indexOf(" Vivaldi/") !== -1) {
|
} else if (navigator.userAgent.indexOf(" Vivaldi/") !== -1) {
|
||||||
this.deviceCache = DeviceType.VivaldiExtension;
|
this.deviceCache = DeviceType.VivaldiExtension;
|
||||||
} else if (window.chrome && navigator.userAgent.indexOf(" Chrome/") !== -1) {
|
} else if (this.win.chrome && navigator.userAgent.indexOf(" Chrome/") !== -1) {
|
||||||
this.deviceCache = DeviceType.ChromeExtension;
|
this.deviceCache = DeviceType.ChromeExtension;
|
||||||
} else if (navigator.userAgent.indexOf(" Safari/") !== -1) {
|
} else if (navigator.userAgent.indexOf(" Safari/") !== -1) {
|
||||||
this.deviceCache = DeviceType.SafariExtension;
|
this.deviceCache = DeviceType.SafariExtension;
|
||||||
@@ -178,8 +179,8 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
|
|||||||
}
|
}
|
||||||
|
|
||||||
copyToClipboard(text: string, options?: any): void {
|
copyToClipboard(text: string, options?: any): void {
|
||||||
let win = window;
|
let win = this.win;
|
||||||
let doc = window.document;
|
let doc = this.win.document;
|
||||||
if (options && (options.window || options.win)) {
|
if (options && (options.window || options.win)) {
|
||||||
win = options.window || options.win;
|
win = options.window || options.win;
|
||||||
doc = win.document;
|
doc = win.document;
|
||||||
@@ -238,8 +239,8 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
|
|||||||
}
|
}
|
||||||
|
|
||||||
async readFromClipboard(options?: any): Promise<string> {
|
async readFromClipboard(options?: any): Promise<string> {
|
||||||
let win = window;
|
let win = this.win;
|
||||||
let doc = window.document;
|
let doc = this.win.document;
|
||||||
if (options && (options.window || options.win)) {
|
if (options && (options.window || options.win)) {
|
||||||
win = options.window || options.win;
|
win = options.window || options.win;
|
||||||
doc = win.document;
|
doc = win.document;
|
||||||
@@ -335,7 +336,7 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
|
|||||||
}
|
}
|
||||||
|
|
||||||
sidebarViewName(): string {
|
sidebarViewName(): string {
|
||||||
if (window.chrome.sidebarAction && this.isFirefox()) {
|
if (this.win.chrome.sidebarAction && this.isFirefox()) {
|
||||||
return "sidebar";
|
return "sidebar";
|
||||||
} else if (this.isOpera() && typeof opr !== "undefined" && opr.sidebarAction) {
|
} else if (this.isOpera() && typeof opr !== "undefined" && opr.sidebarAction) {
|
||||||
return "sidebar_panel";
|
return "sidebar_panel";
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
import { EventService } from "../abstractions/event.service";
|
|
||||||
import { EventType } from "../enums/eventType";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* If you want to use this, don't.
|
|
||||||
* If you think you should use that after the warning, don't.
|
|
||||||
*/
|
|
||||||
export class NoopEventService implements EventService {
|
|
||||||
constructor() {
|
|
||||||
if (chrome.runtime.getManifest().manifest_version !== 3) {
|
|
||||||
throw new Error("You are not allowed to use this when not in manifest_version 3");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
collect(eventType: EventType, cipherId?: string, uploadImmediately?: boolean) {
|
|
||||||
return Promise.resolve();
|
|
||||||
}
|
|
||||||
uploadEvents(userId?: string) {
|
|
||||||
return Promise.resolve();
|
|
||||||
}
|
|
||||||
clearEvents(userId?: string) {
|
|
||||||
return Promise.resolve();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user