Skip to content
Open
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
6 changes: 5 additions & 1 deletion packages/api/src/EmbeddedChatApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1120,8 +1120,12 @@ export default class EmbeddedChatApi {
async getSearchMessages(text: string) {
try {
const { userId, authToken } = (await this.auth.getCurrentUser()) || {};
const queryParams = new URLSearchParams({
roomId: this.rid,
searchText: text,
});
const response = await fetch(
`${this.host}/api/v1/chat.search?roomId=${this.rid}&searchText=${text}`,
`${this.host}/api/v1/chat.search?${queryParams.toString()}`,
{
headers: {
"Content-Type": "application/json",
Expand Down
Loading