Skip to content

Commit

Permalink
Hydrate UserIds found in crypto transfers (#6491)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Oct 1, 2024
1 parent c1d08fd commit b68e75f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/openchat-shared/src/utils/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ export function userIdsFromEvents(events: EventWrapper<ChatEvent>[]): Set<string
getContentAsFormattedText(fakeFormatter, e.event.repliesTo.content, {}),
).forEach((id) => userIds.add(id));
}
if (e.event.content.kind === "reported_message_content") {
if (e.event.content.kind === "crypto_content") {
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));
}
extractUserIdsFromMentions(
Expand Down

0 comments on commit b68e75f

Please sign in to comment.