sync: introduce sync v2

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

No files matched your search

+9
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);
}
}
}