1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-07-02 11:34:54 +02:00

add support for log out notification

This commit is contained in:
Kyle Spearrin 2018-08-28 08:41:11 -04:00
parent 42c21ce892
commit 1ec31c6899
2 changed files with 10 additions and 1 deletions

View File

@ -13,6 +13,8 @@
SyncFolderCreate = 7,
SyncFolderUpdate = 8,
SyncCipherDelete = 9,
SyncSettings = 10
SyncSettings = 10,
LogOut = 11,
}
}

View File

@ -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;
}