1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 13:23:34 +00:00

Pm 21068 defect when vault is locked the notification bar header is missing and the x button placed next to bitwarden shield icon (#14586)

* PM-21068 if notificationRefresh flag is enabled do not render unlock notification

* remove testing bang
This commit is contained in:
Daniel Riera
2025-05-05 17:32:08 -04:00
committed by GitHub
parent 961be9ed6a
commit 72b585fb87

View File

@@ -542,10 +542,15 @@ export default class NotificationBackground {
* @param tab - The tab that the message was sent from * @param tab - The tab that the message was sent from
*/ */
private async unlockVault(message: NotificationBackgroundExtensionMessage, tab: chrome.tabs.Tab) { private async unlockVault(message: NotificationBackgroundExtensionMessage, tab: chrome.tabs.Tab) {
const notificationRefreshFlagEnabled = await this.getNotificationFlag();
if (message.data?.skipNotification) { if (message.data?.skipNotification) {
return; return;
} }
if (notificationRefreshFlagEnabled) {
return;
}
const currentAuthStatus = await this.getAuthStatus(); const currentAuthStatus = await this.getAuthStatus();
if (currentAuthStatus !== AuthenticationStatus.Locked || this.notificationQueue.length) { if (currentAuthStatus !== AuthenticationStatus.Locked || this.notificationQueue.length) {
return; return;