mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-10-03 03:16:48 +02:00
sync: introduce sync v2
This commit is contained in:
1 parent
55a7e9fd1c
commit
ab7ea72fd4
3 files changed
+349
-60
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user