mirror of
https://github.com/bitwarden/mobile
synced 2025-12-30 07:03:48 +00:00
Push notification and sync fixes
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using SQLite;
|
||||
using Bit.App.Abstractions;
|
||||
using Bit.App.Models.Api;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace Bit.App.Models.Data
|
||||
{
|
||||
@@ -44,11 +45,7 @@ namespace Bit.App.Models.Data
|
||||
throw new ArgumentException(nameof(cipher.Type));
|
||||
}
|
||||
|
||||
var data = cipher.Data as SiteDataModel;
|
||||
if(data == null)
|
||||
{
|
||||
throw new ArgumentException(nameof(cipher.Data));
|
||||
}
|
||||
var data = cipher.Data.ToObject<SiteDataModel>();
|
||||
|
||||
Id = cipher.Id;
|
||||
UserId = userId;
|
||||
|
||||
Reference in New Issue
Block a user