element-x-android
element-x-android copied to clipboard
Disconcerting "left room" toast
Steps to reproduce
- Where are you starting? What can you see? Frequent left room toast. When I wake the app from being in background activity, there appears a "left room" dialog. The dialog is a long black box that floats over the front of the UI.
- What do you click? Nothing. Open the app and it's there. It appears alongside DMs, it appears in room lists, it appears in rooms.
Did you leave any rooms? Yes 24 hours ago, I left a group room using the Element X app. Further, I have engaged in other activities on the app since, like messaging friends.
Toast? It's a modern design word for floating element with a high contrast text. An info dialog could also be used to describe it.
Outcome
What did you expect?
No more constant messages about leaving a room.
Your phone model
Samsung z5
Operating system version
Android 14
Application version and app store
0.4.9
Homeserver
matrix.org
Will you send logs?
Yes
Are you willing to provide a PR?
No
Update, 4 days since the initial event and I am still seeing this message.
I've been trying to reproduce this for some time but I've been unable to. I tried leaving the room from both the room list and the room settings screen and the snackbar/toast is only displayed once. I also tried navigating to other screens, putting the app on background and foreground again, going to background then opening a notification to launch the app and killing/restarting the app.
What's more, the flow that displays these messages is used in a single place, always triggered by a user action, has no replay mechanism to provide the same message to new subscribers (which was my main candidate for a culprit based on the description of this issue), and the subscribers consume and discard the message in a thread-safe way AFAICT, so I couldn't find anything that could cause this.
Does the problem persist even when the app is restarted? Could you send some logs, please?
Closing as not reproducible.