pl-fe: Fix contexts

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-11-06 20:29:00 +01:00
parent a636ebdc40
commit d5a8a34ada

View file

@ -33,7 +33,7 @@ const importStatus = (state: State, status: Pick<Status, 'id' | 'in_reply_to_id'
if (!inReplyToId) return;
const replies = state.replies[inReplyToId] || [];
const newReplies = [...replies, id].toSorted();
const newReplies = [...new Set([...replies, id])].toSorted();
state.replies[inReplyToId] = newReplies;
state.inReplyTos[id] = inReplyToId;