GetStream / stream-chat-js

JS / Browser Client - Build Chat with GetStream.io
https://getstream.io/chat/
Other
177 stars 75 forks source link

chore: allow string arrays on sort parameters #1326

Open xernobyl opened 1 month ago

xernobyl commented 1 month ago

CLA

Description of the changes, What, Why and How?

Added support to Sort by arrays of strings:

const { members } = await channel.queryMembers(
    {},
    { channel_role: ['channel_moderator', 'channel_member'], name: 1 },
);

Now users should be able to query members sorted by role.

Changelog

-

github-actions[bot] commented 1 month ago

Size Change: 0 B

Total Size: 377 kB

ℹ️ View Unchanged | Filename | Size | | :--- | :---: | | `dist/browser.es.js` | 81.6 kB | | `dist/browser.full-bundle.min.js` | 48.8 kB | | `dist/browser.js` | 82.6 kB | | `dist/index.es.js` | 81.7 kB | | `dist/index.js` | 82.7 kB |

compressed-size-action