Skip to content

Commit

Permalink
Rehydrate prize winner users (#6787)
Browse files Browse the repository at this point in the history
  • Loading branch information
julianjelfs authored Nov 11, 2024
1 parent 2dd42f1 commit 0ecf274
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/openchat-shared/src/utils/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ export function userIdsFromEvents(events: EventWrapper<ChatEvent>[]): Set<string
userIds.add(e.event.content.transfer.recipient);
} else if (e.event.content.kind === "reported_message_content") {
e.event.content.reports.forEach((r) => userIds.add(r.reportedBy));
} else if (e.event.content.kind === "prize_winner_content") {
userIds.add(e.event.content.transaction.recipient);
}
e.event.reactions.forEach((r) => r.userIds.forEach((u) => userIds.add(u)));
extractUserIdsFromMentions(
Expand Down

0 comments on commit 0ecf274

Please sign in to comment.