Fixed error handling (again)

This commit is contained in:
dangered wolf 2022-07-15 16:25:38 -04:00
parent 651d4d3176
commit 5307bfc1a4
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58

View file

@ -65,7 +65,11 @@ export const fetchUsingGuest = async (status: string): Promise<TimelineBlobParti
) )
).json()) as TimelineBlobPartial; ).json()) as TimelineBlobPartial;
if (typeof conversation.globalObjects === 'undefined' || conversation.errors?.[0]?.code === 239) { if (
typeof conversation.globalObjects === 'undefined' &&
(typeof conversation.errors === 'undefined' ||
conversation.errors?.[0]?.code === 239)
) {
console.log('Failed to fetch conversation, got', conversation); console.log('Failed to fetch conversation, got', conversation);
continue; continue;
} }