mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-07-06 10:57:50 +02:00
inbox: store user's inbox keys (#47)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user