1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-08 11:33:31 +00:00

Invoke logout message always on main thread.

This commit is contained in:
Kyle Spearrin
2016-07-19 19:38:13 -04:00
parent 6c496bea14
commit 2fb2d99541
4 changed files with 8 additions and 11 deletions

View File

@@ -178,10 +178,7 @@ namespace Bit.App
private void Logout(string logoutMessage)
{
_authService.LogOut();
Device.BeginInvokeOnMainThread(() =>
{
_pushNotification.Unregister();
});
_pushNotification.Unregister();
Current.MainPage = new HomePage();
if(!string.IsNullOrWhiteSpace(logoutMessage))
{