inbox: store user's inbox keys (#47)

This commit is contained in:
01zulfi
2025-09-06 09:32:44 +05:00
committed by GitHub
parent 201a235357
commit 34a09ad15d
5 changed files with 24 additions and 1 deletions
+11
View File
@@ -148,6 +148,17 @@ namespace Notesnook.API.Services
{
userSettings.MonographPasswordsKey = keys.MonographPasswordsKey;
}
if (keys.InboxKeys != null)
{
if (keys.InboxKeys.Public == null || keys.InboxKeys.Private == null)
{
userSettings.InboxKeys = null;
}
else
{
userSettings.InboxKeys = keys.InboxKeys;
}
}
await Repositories.UsersSettings.UpdateAsync(userSettings.Id, userSettings);
}