mirror of
https://github.com/tutao/tutanota.git
synced 2025-12-08 06:09:50 +00:00
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:
parent
4a635ddf57
commit
a72f1c001b
1 changed files with 1 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue