mirror of
https://github.com/bitwarden/android.git
synced 2024-12-26 02:48:29 +03:00
[SG-802] Add if check on notification tap. (#2172)
This commit is contained in:
parent
69f02eef82
commit
6bfc8f7d49
1 changed files with 2 additions and 1 deletions
|
@ -228,7 +228,8 @@ namespace Bit.App.Services
|
||||||
if (data is PasswordlessNotificationData passwordlessNotificationData)
|
if (data is PasswordlessNotificationData passwordlessNotificationData)
|
||||||
{
|
{
|
||||||
var notificationUserId = await _stateService.Value.GetUserIdAsync(passwordlessNotificationData.UserEmail);
|
var notificationUserId = await _stateService.Value.GetUserIdAsync(passwordlessNotificationData.UserEmail);
|
||||||
if (notificationUserId != null)
|
var notificationSaved = await _stateService.Value.GetPasswordlessLoginNotificationAsync();
|
||||||
|
if (notificationUserId != null && notificationSaved != null)
|
||||||
{
|
{
|
||||||
await _stateService.Value.SetActiveUserAsync(notificationUserId);
|
await _stateService.Value.SetActiveUserAsync(notificationUserId);
|
||||||
_messagingService.Value.Send(AccountsManagerMessageCommands.SWITCHED_ACCOUNT);
|
_messagingService.Value.Send(AccountsManagerMessageCommands.SWITCHED_ACCOUNT);
|
||||||
|
|
Loading…
Reference in a new issue