Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tandr3w opened this issue Aug 14, 2023 · 2 comments
Open

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

tandr3w opened this issue Aug 14, 2023 · 2 comments
Labels

Comments

@tandr3w
Copy link
Contributor

tandr3w commented Aug 14, 2023

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 tandr3w added the bug label Aug 14, 2023
@or-else
Copy link
Contributor

or-else commented Aug 15, 2023

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

@tandr3w
Copy link
Contributor Author

tandr3w commented Aug 16, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants