Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ function useGetSearchedMessages(
if (sdk && channelUrl && sdk.createMessageSearchQuery && currentChannel) {
if (requestString) {
const inputSearchMessageQueryObject: MessageSearchQueryParams = {
...messageSearchQuery,
order: MessageSearchOrder.TIMESTAMP,
channelUrl,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really want to override? I think we explicitly didnt wanted to do this before

Anyways, please add comment with ticket number before merge

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirmed the other platforms are allowing to override messageSearchQuery.

messageTimestampFrom: currentChannel.invitedAt,
keyword: requestString,
...messageSearchQuery,
};
const createdQuery = sdk.createMessageSearchQuery(inputSearchMessageQueryObject);
createdQuery.next().then((messages) => {
Expand Down