sync: introduce sync v2

This commit is contained in:
Abdullah Atta
2023-09-09 20:29:05 +05:00
parent 55a7e9fd1c
commit ab7ea72fd4
3 changed files with 349 additions and 60 deletions

View File

@@ -52,5 +52,14 @@ namespace Notesnook.API.Models
[BsonElement("salt")]
[DataMember(Name = "salt")]
public string Salt { get; set; }
public override bool Equals(object obj)
{
if (obj is EncryptedData encryptedData)
{
return IV == encryptedData.IV && Salt == encryptedData.Salt && Cipher == encryptedData.Cipher && Length == encryptedData.Length;
}
return base.Equals(obj);
}
}
}