element-hq / element-hq/element-android

Handle the delay before showing a newly created room on "Explore rooms" screen

Open
#6,402 0 comments 0 reactions 0 assignees View on GitHub
A-Create-Room S-Minor T-Enhancement Z-Community-Testing
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

### Your use case

#### What would you like to do?
I'm a member of a public space with some rooms in it. When I create a new private room within that space, I get redirected back to the Explore rooms screen.
There's a small delay between me creating a new room and the room actually showing up on that screen. Sometimes, I can even see the room change its name from Empty room to whatever I named it.
If the space had a lot of rooms or I had a slow connection, this delay could increase. That would probably make me think that the room creation didn't happen and I'd try to create it again.

For example, I've just created a new room called "What?" and got back to this screen:
![image](https://user-images.githubusercontent.com/18530109/176190493-80261b27-0693-4766-a180-9be82269d5c2.png)

After a second or two, I can see the room:
![image](https://user-images.githubusercontent.com/18530109/176190627-5c61e97e-5ae7-4a7c-9777-48e05d9252a1.png)

#### Why would you like to do it?
To make the app seem more reliable.
#### How would you like to achieve it?
I guess we could add a spinner on the Explore rooms screen and wait for the room to be fully created.

### Have you considered any alternatives?

Alternatively, we could make the user wait for the room to be fully created before we redirect them to the Explore rooms screen.

### Additional context

The easiest way to reproduce this behaviour is to have a poor connection or a lot of rooms within a space.

### Are you willing to provide a PR?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.