project-robius / robrix

A multi-platform Matrix chat client written in pure Rust using the Makepad UI toolkit and the Robius app dev framework
MIT License
93 stars 17 forks source link

Hide the message input bar in rooms where the user is not permitted to send messages #239

Open Demolemon11 opened 1 day ago

Demolemon11 commented 1 day ago

This PR hides the message input bar in a room where the user does not have sufficient permissions (power level) to send a message. It hides that view and then shows another view that informs the user that they lack sufficient permissions to send a message.

image

If you want any different font size or the background is mixed, just tell me. : )

Closes #231.

tyreseluo commented 14 hours ago

Continuous user subscription to room status does not seem to be realized.When a user's power level in a room changes, it may not be updated in time.

Demolemon11 commented 12 hours ago

Thanks for your encouragement, I'll be more serious and work harder!