Fix 404 error popup for deleted mails

Was wrong filtering condition for PrefetchStatus.NotAvailable

Co-authored-by: abp <abp@tutao.de>
This commit is contained in:
sug 2025-07-07 12:07:23 +02:00
parent 4a635ddf57
commit a72f1c001b

View file

@ -750,8 +750,7 @@ export class DefaultEntityRestCache implements EntityRestCache {
// we do not want to process entityUpdates where the prefetchStatus is PrefetchStatus.NotAvailable
// PrefetchStatus.NotAvailable indicates that we failed to fetch the instance because of 404 NotFound, 403 NotAuthorized
const regularUpdates = events.filter((u) => u.typeRef.app !== "monitor" || u.prefetchStatus !== PrefetchStatus.NotAvailable)
const regularUpdates = events.filter((u) => u.typeRef.app !== "monitor" && u.prefetchStatus !== PrefetchStatus.NotAvailable)
// we need an array of UpdateEntityData
const filteredUpdateEvents: EntityUpdateData[] = []
for (let update of regularUpdates) {