mirror of
https://github.com/bitwarden/android.git
synced 2025-01-12 11:17:30 +03:00
[SG-860] Add condition to execute notification tap code (#2211)
This commit is contained in:
parent
3c8a8862ca
commit
f43f9171e5
1 changed files with 2 additions and 1 deletions
|
@ -228,8 +228,9 @@ namespace Bit.App.Services
|
|||
if (data is PasswordlessNotificationData passwordlessNotificationData)
|
||||
{
|
||||
var notificationUserId = await _stateService.Value.GetUserIdAsync(passwordlessNotificationData.UserEmail);
|
||||
var activeUserEmail = await _stateService.Value.GetActiveUserEmailAsync();
|
||||
var notificationSaved = await _stateService.Value.GetPasswordlessLoginNotificationAsync();
|
||||
if (notificationUserId != null && notificationSaved != null)
|
||||
if (activeUserEmail != passwordlessNotificationData.UserEmail && notificationUserId != null && notificationSaved != null)
|
||||
{
|
||||
await _stateService.Value.SetActiveUserAsync(notificationUserId);
|
||||
_messagingService.Value.Send(AccountsManagerMessageCommands.SWITCHED_ACCOUNT);
|
||||
|
|
Loading…
Reference in a new issue