Skip to content

Commit 19f9a07

Browse files
fix: issue with autocomplete suggestions for channel with more than 100 members
1 parent 198c437 commit 19f9a07

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

package/src/utils/utils.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,12 @@ const queryMembers = async <
153153
channel: Channel<At, Ch, Co, Ev, Me, Re, Us>,
154154
query: SuggestionUser<Us>['name'],
155155
onReady?: (users: SuggestionUser<Us>[]) => void,
156-
limit = defaultAutoCompleteSuggestionsLimit,
156+
options: {
157+
limit?: number;
158+
} = {},
157159
): Promise<void> => {
160+
const { limit = defaultAutoCompleteSuggestionsLimit } = options;
161+
158162
if (typeof query === 'string') {
159163
const response = (await (channel as unknown as Channel).queryMembers(
160164
{

0 commit comments

Comments
 (0)