mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
add support for log out notification
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
SyncFolderCreate = 7,
|
||||
SyncFolderUpdate = 8,
|
||||
SyncCipherDelete = 9,
|
||||
SyncSettings = 10
|
||||
SyncSettings = 10,
|
||||
|
||||
LogOut = 11,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -147,6 +147,13 @@ namespace Bit.App.Services
|
||||
}
|
||||
_syncService.SyncProfileAsync();
|
||||
break;
|
||||
case Enums.PushType.LogOut:
|
||||
var logOutMessage = JsonConvert.DeserializeObject<SyncUserPushNotification>(data.Payload);
|
||||
if(logOutMessage.UserId == _authService.UserId)
|
||||
{
|
||||
_authService.LogOut(null);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user