mirror of
https://github.com/bitwarden/mobile
synced 2025-12-23 11:43:49 +00:00
migrated messaging
This commit is contained in:
@@ -99,6 +99,10 @@ namespace Bit.App
|
||||
}
|
||||
else if(message.Command == "logout")
|
||||
{
|
||||
if(Migration.MigrationHelpers.Migrating)
|
||||
{
|
||||
return;
|
||||
}
|
||||
await LogOutAsync(false);
|
||||
}
|
||||
else if(message.Command == "loggedOut")
|
||||
@@ -117,6 +121,11 @@ namespace Bit.App
|
||||
SyncIfNeeded();
|
||||
}
|
||||
}
|
||||
else if(message.Command == "migrated")
|
||||
{
|
||||
await Task.Delay(1000);
|
||||
await SetMainPageAsync();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -295,6 +304,10 @@ namespace Bit.App
|
||||
|
||||
private void SyncIfNeeded()
|
||||
{
|
||||
if(Migration.MigrationHelpers.Migrating)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Task.Run(async () =>
|
||||
{
|
||||
var lastSync = await _syncService.GetLastSyncAsync();
|
||||
|
||||
Reference in New Issue
Block a user