mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
add support for log out notification
This commit is contained in:
parent
42c21ce892
commit
1ec31c6899
2 changed files with 10 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue