webapp icon indicating copy to clipboard operation
webapp copied to clipboard

New topic occasionally gets stuck on "no access to messages"

Open tandr3w opened this issue 1 year ago • 2 comments

Describe the bug Occasionally, when creating a new topic group, the messages screen will be stuck on "no access to messages". This happens very occasionally on PC (<5% of the time for me) and goes away after a couple seconds. However, this seems to happen more often on mobile, and the screen never goes away on mobile (gets stuck permanently).

To Reproduce Steps to reproduce the behavior:

  1. Go to sandbox.tinode.co
  2. Create a new group
  3. You should get stuck on a "no access to messages" screen. If you don't, try repeating these steps again. At this point, the loading spinner should've disappeared, but the "no access to messages" screen is still there.
  4. When the component is refreshed (e.g. swapping to another chat and back, refreshing the page), the screen always disappears.

Expected behavior After creating a new group, it should not get stuck on the "no access to messages" screen. Rather than having to refresh, it should update automatically.

Screenshots Here's what the console looks like when this bug happens on PC: image

Here's what the console looks like when the bug doesn't happen: image image

Example video: https://github.com/tinode/webapp/assets/84942946/bae1c63b-ddec-425f-9b64-323395c1f576

tandr3w avatar Aug 14 '23 17:08 tandr3w

The logs are not very useful in this case. It's probably a data race.

or-else avatar Aug 15 '23 06:08 or-else

Also, when inviting someone else into a group, they sometimes appear as "unnamed" until the screen is refreshed. I think it's for a similar reason as this issue.

tandr3w avatar Aug 16 '23 19:08 tandr3w