forked from errbotio/err-backend-gitter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gitter: Fix occupants for GitterRoom
The limit parameter was not used which defaults to 30 and returns maximum 100 users at a time. Hence, it fails to return all the members in the room. In order to tackle this, we need to iterate by skipping 100 members with every API request. Also users count needs to be updated everytime list of occupants is requested as new users may join a room in realtime. Closes errbotio#38
- Loading branch information
Showing
1 changed file
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters