diff --git a/packages/nicolium/src/stores/timelines.ts b/packages/nicolium/src/stores/timelines.ts index 981d39fa3..c723cfc2b 100644 --- a/packages/nicolium/src/stores/timelines.ts +++ b/packages/nicolium/src/stores/timelines.ts @@ -83,12 +83,14 @@ const processPage = (statuses: Array): Array => { (entry) => entry.type === 'status' && entry.id === (status.reblog || status).id, ); - if (!status.reblog && existingEntry !== -1) { - const entry = timelinePage[existingEntry]; - if (entry.type === 'status') entry.isReblog = false; - } + if (existingEntry !== -1) { + if (!status.reblog) { + const entry = timelinePage[existingEntry]; + if (entry.type === 'status') entry.isReblog = false; + } - if (existingEntry !== -1) return existingEntry; + return existingEntry; + } let isConnectedTop = false; const inReplyToId = (status.reblog || status).in_reply_to_id;