From 0367ab6f80629259529a7c8231f1376338b84c91 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Fri, 15 May 2026 08:58:21 +0500 Subject: [PATCH] sync: get rid of ._id fallback for inbox items --- Notesnook.API/Hubs/SyncV2Hub.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Notesnook.API/Hubs/SyncV2Hub.cs b/Notesnook.API/Hubs/SyncV2Hub.cs index 5ec6aa4..a17e92e 100644 --- a/Notesnook.API/Hubs/SyncV2Hub.cs +++ b/Notesnook.API/Hubs/SyncV2Hub.cs @@ -328,7 +328,7 @@ namespace Notesnook.API.Hubs var unsyncedInboxItemIds = ids.Where(k => k.Type == "inbox_item").Select(k => k.ItemId); var userInboxItems = device.IsSyncReset ? await Repositories.InboxItems.FindAsync(m => m.UserId == userId) - : await Repositories.InboxItems.FindAsync(m => m.UserId == userId && unsyncedInboxItemIds.Contains(m.ItemId ?? m.Id.ToString())); + : await Repositories.InboxItems.FindAsync(m => m.UserId == userId && unsyncedInboxItemIds.Contains(m.ItemId)); if (userInboxItems.Any() && !await Clients.Caller.SendInboxItems(userInboxItems).WaitAsync(TimeSpan.FromMinutes(10))) { throw new HubException("Client rejected inbox items.");