Skip to content

Commit f709eb6

Browse files
authored
fix: make MessageThreadReplyInChannelButtonIndicator to MessageIsThreadReplyInChannelButtonIndicator (#2735)
1 parent c9802c7 commit f709eb6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/components/Message/MessageThreadReplyInChannelButtonIndicator.tsx renamed to src/components/Message/MessageIsThreadReplyInChannelButtonIndicator.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
useTranslationContext,
1010
} from '../../context';
1111

12-
export const MessageThreadReplyInChannelButtonIndicator = () => {
12+
export const MessageIsThreadReplyInChannelButtonIndicator = () => {
1313
const { client } = useChatContext();
1414
const { t } = useTranslationContext();
1515
const { channel } = useChannelStateContext();
@@ -36,7 +36,7 @@ export const MessageThreadReplyInChannelButtonIndicator = () => {
3636
},
3737
origin: {
3838
context: { threadReply: message },
39-
emitter: 'MessageThreadReplyInChannelButtonIndicator',
39+
emitter: 'MessageIsThreadReplyInChannelButtonIndicator',
4040
},
4141
});
4242
});

src/components/Message/MessageSimple.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { MessageText } from './MessageText';
1212
import { MessageTimestamp as DefaultMessageTimestamp } from './MessageTimestamp';
1313
import { StreamedMessageText as DefaultStreamedMessageText } from './StreamedMessageText';
1414
import { isDateSeparatorMessage } from '../MessageList';
15-
import { MessageThreadReplyInChannelButtonIndicator as DefaultMessageIsThreadReplyInChannelButtonIndicator } from './MessageThreadReplyInChannelButtonIndicator';
15+
import { MessageIsThreadReplyInChannelButtonIndicator as DefaultMessageIsThreadReplyInChannelButtonIndicator } from './MessageIsThreadReplyInChannelButtonIndicator';
1616
import { ReminderNotification as DefaultReminderNotification } from './ReminderNotification';
1717
import { useMessageReminder } from './hooks';
1818
import {

src/context/ComponentContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export type ComponentContextValue = {
125125
MessageBlocked?: React.ComponentType;
126126
/** Custom UI component for a deleted message, defaults to and accepts same props as: [MessageDeleted](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Message/MessageDeleted.tsx) */
127127
MessageDeleted?: React.ComponentType<MessageDeletedProps>;
128-
/** Custom UI component for an indicator that a message is a thread reply sent to channel list: [MessageThreadReplyInChannelButtonIndicator](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Message/MessageIsThreadReplyInChannelButtonIndicator.tsx) */
128+
/** Custom UI component for an indicator that a message is a thread reply sent to channel list: [MessageIsThreadReplyInChannelButtonIndicator](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Message/MessageIsThreadReplyInChannelButtonIndicator.tsx) */
129129
MessageIsThreadReplyInChannelButtonIndicator?: React.ComponentType;
130130
MessageListMainPanel?: React.ComponentType<PropsWithChildrenOnly>;
131131
/** Custom UI component that displays message and connection status notifications in the `MessageList`, defaults to and accepts same props as [DefaultMessageListNotifications](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageList/MessageListNotifications.tsx) */

0 commit comments

Comments
 (0)