Skip to content

gitter: Fix occupants for GitterRoom#41

Open
nvzard wants to merge 1 commit into
errbotio:masterfrom
nvzard:nvzard/occupants_limit
Open

gitter: Fix occupants for GitterRoom#41
nvzard wants to merge 1 commit into
errbotio:masterfrom
nvzard:nvzard/occupants_limit

Conversation

@nvzard

@nvzard nvzard commented Mar 12, 2019

Copy link
Copy Markdown
Contributor

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 #38

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
@nvzard

nvzard commented Mar 12, 2019

Copy link
Copy Markdown
Contributor Author

This might need some more testing, I made it in a hurry. I'll update by tomorrow if necessary.

@abhishalya

Copy link
Copy Markdown
Contributor

This might need some more testing, I made it in a hurry. I'll update by tomorrow if necessary.

@nvzard Have you tested this? I would test it today or tomorrow :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants