Skip to content

Commit 538871d

Browse files
authored
Merge pull request #1705 from GetStream/khushal87-issue-1673
refactor: type of Reaction in OverlayReactions component to include id
2 parents e88682a + 02fef6d commit 538871d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docusaurus/docs/reactnative/ui-components/overlay_reactions.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ List of existing reactions which can be extracted from a message.
2424
```tsx
2525
const reactions = message.latest_reactions.map(reaction => ({
2626
alignment: clientId && clientId === reaction.user?.id ? 'right' : 'left',
27+
id: reaction?.user?.id || '',
2728
image: reaction?.user?.image,
2829
name: reaction?.user?.name || reaction.user_id || '',
2930
type: reaction.type,

package/src/components/MessageOverlay/OverlayReactions.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ const reactionData: ReactionData[] = [
9696

9797
export type Reaction = {
9898
alignment: Alignment;
99+
id: string;
99100
name: string;
100101
type: string;
101102
image?: string;

0 commit comments

Comments
 (0)