Skip to content

Commit 89d2890

Browse files
committed
fix: some of the outstanding todos
1 parent 9c15a6f commit 89d2890

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

package/src/components/Channel/Channel.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,8 +1181,6 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
11811181
attachments,
11821182
mentioned_users,
11831183
parent_id,
1184-
// TODO: CHECK ME PLEASE
1185-
// poll,
11861184
poll_id,
11871185
text,
11881186
...extraFields
@@ -1205,7 +1203,6 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
12051203
id: userId,
12061204
})) || [],
12071205
parent_id,
1208-
// poll,
12091206
poll_id,
12101207
reactions: [],
12111208
status: MessageStatusTypes.SENDING,

package/src/contexts/threadsContext/ThreadsContext.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ export const useThreadsContext = () => {
4444

4545
if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {
4646
throw new Error(
47-
// TODO: Set correct link to docs page, should be the new ThreadList instead of Channel
48-
'The useThreadsContext hook was called outside of the ThreadsContext provider. Make sure you have configured the ThreadList component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#channel',
47+
'The useThreadsContext hook was called outside of the ThreadsContext provider. Make sure you have configured the ThreadList component correctly - https://getstream.io/chat/docs/sdk/react-native/ui-components/thread-list/',
4948
);
5049
}
5150

package/src/utils/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const isBouncedMessage = (message: MessageType) =>
9999
* @param message
100100
* @returns boolean
101101
*/
102-
export const isEditedMessage = (message: MessageType) => !!message.message_text_updated_at; // TODO: FIXME: && !message.ai_generated;
102+
export const isEditedMessage = (message: MessageType) => !!message.message_text_updated_at;
103103

104104
/**
105105
* Default emoji search index for auto complete text input

0 commit comments

Comments
 (0)