Skip to content

Commit 87aa638

Browse files
authored
Merge pull request #826 from GetStream/emoji-reaction-button
Emoji reaction button
2 parents ef043a5 + 6b99cc2 commit 87aa638

File tree

3 files changed

+0
-21
lines changed

3 files changed

+0
-21
lines changed

src/components/Message/MessageCommerce.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,6 @@ const MessageCommerceWithContext = <
117117
: 'str-chat__message-commerce--has-no-text'
118118
}
119119
${hasAttachment ? 'str-chat__message-commerce--has-attachment' : ''}
120-
${
121-
hasReactions && isReactionEnabled
122-
? 'str-chat__message-commerce--with-reactions'
123-
: ''
124-
}
125120
${`str-chat__message-commerce--${firstGroupStyle}`}
126121
${message.pinned ? 'pinned-message' : ''}
127122
`.trim()}

src/components/Message/MessageSimple.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,6 @@ const MessageSimpleWithContext = <
141141
str-chat__message--${message.status}
142142
${message.text ? 'str-chat__message--has-text' : 'has-no-text'}
143143
${hasAttachment ? 'str-chat__message--has-attachment' : ''}
144-
${
145-
hasReactions && isReactionEnabled
146-
? 'str-chat__message--with-reactions'
147-
: ''
148-
}
149144
${message.pinned ? 'pinned-message' : ''}
150145
`.trim()}
151146
key={message.id || ''}

src/components/Message/__tests__/MessageCommerce.test.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -188,17 +188,6 @@ describe('<MessageCommerce />', () => {
188188
);
189189
});
190190

191-
it('should set correct css class modifier if message has reactions', async () => {
192-
const bobReaction = generateReaction({ user: bob });
193-
const message = generateAliceMessage({
194-
latest_reactions: [bobReaction],
195-
});
196-
const { getByTestId } = await renderMessageCommerce(message);
197-
expect(getByTestId(messageCommerceWrapperTestId).className).toContain(
198-
'--with-reactions',
199-
);
200-
});
201-
202191
it('should not set css class modifier if reactions is disabled in channel config', async () => {
203192
const bobReaction = generateReaction({ user: bob });
204193
const message = generateAliceMessage({

0 commit comments

Comments
 (0)