decentraland/kernel

Not all connected members appear in the member list of a channel

Closed this issue · 1 comments

Sometimes there is people currently talking in a specific chat channel which is not displayed in the member list.

image.png

Repro steps:

  1. Join a chat channel through the channel browser
  2. Open the member list of the channel
  3. Receive message in the channel from different people
  4. Sometimes the person is not displayed in the member list, being online at the moment

We have checked the flow and the problem is that the information received from kernel is not correct. Each time we send the message GetChannelMembers from renderer to kernel, we're receiving the message UpdateChannelMembers 2 times with less members than expected.

For example, right now we see that the #english channel has 22 online members BUT when we request the list of members, we receive only 2:

{"channelId":"!JhVbCsFETCKXNpPQXp:decentraland.org","members":[{"userId":"0x1b8ba74cc34c2927aac0a8af9c3b1ba2e61352f2","name":"SantiHisteria","isOnline":true},{"userId":"0x751c4e9b2c75a2d4e3442e0a06a67bf0bb02060a","name":"viisikanta","isOnline":true}]}

image.png

So we have 2 things to fix here:

  • The UpdateChannelMembers is sent from kernel to renderer 2 times.
  • The UpdateChannelMembers come with less members than expected.

We're going to move this issue to the kernel repo.