Zendesk ticket: 43044
query_channels possible infinite loop by always returning results over 1000
eg Asking for offset: 1000000 will return users even when only 2000 users may exist in the system.
I would suggest that the library implement an easy way to query all users with offsets greater than 1000, maybe a python iterable.
Steps to reproduce
I'm well aware this code is not very clean but it does show the issue. Since query channels will always return items in the array you don't know when to stop.
Problem explanation
Zendesk ticket: 43044 query_channels possible infinite loop by always returning results over 1000 eg Asking for offset: 1000000 will return users even when only 2000 users may exist in the system.
https://support.getstream.io/hc/en-us/articles/4414446580119-Querying-for-users-channels-past-the-offset-1000-limit-Chat
I would suggest that the library implement an easy way to query all users with offsets greater than 1000, maybe a python iterable.
Steps to reproduce
I'm well aware this code is not very clean but it does show the issue. Since query channels will always return items in the array you don't know when to stop.
Environment info
Library version: stream-chat==4.8.0