mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 07:35:52 +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,
|
SyncFolderCreate = 7,
|
||||||
SyncFolderUpdate = 8,
|
SyncFolderUpdate = 8,
|
||||||
SyncCipherDelete = 9,
|
SyncCipherDelete = 9,
|
||||||
SyncSettings = 10
|
SyncSettings = 10,
|
||||||
|
|
||||||
|
LogOut = 11,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -147,6 +147,13 @@ namespace Bit.App.Services
|
||||||
}
|
}
|
||||||
_syncService.SyncProfileAsync();
|
_syncService.SyncProfileAsync();
|
||||||
break;
|
break;
|
||||||
|
case Enums.PushType.LogOut:
|
||||||
|
var logOutMessage = JsonConvert.DeserializeObject<SyncUserPushNotification>(data.Payload);
|
||||||
|
if(logOutMessage.UserId == _authService.UserId)
|
||||||
|
{
|
||||||
|
_authService.LogOut(null);
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue