mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-30 12:54:24 +01:00
add support for log out notification
This commit is contained in:
parent
42c21ce892
commit
1ec31c6899
@ -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 New Issue
Block a user