Indicate when you can't send to a room #274

Open
opened 2025-10-14 15:44:14 -06:00 by navan · 0 comments
Owner

Originally created by @ulyssa on 4/14/2024

Some rooms require a power level greater than what most members have to be able to send messages to it. There is a Room::can_user_send_message that takes care of doing the power-level checks. This could be used in refresh_rooms to take care of periodically updating a readonly: bool field on each RoomInfo object, which can then be used to disable the message bar when the user is not allowed to send.

*Originally created by @ulyssa on 4/14/2024* Some rooms require a power level greater than what most members have to be able to send messages to it. There is a [`Room::can_user_send_message`](https://docs.rs/matrix-sdk/0.7.1/matrix_sdk/room/struct.Room.html#method.can_user_send_message) that takes care of doing the power-level checks. This could be used in `refresh_rooms` to take care of periodically updating a `readonly: bool` field on each `RoomInfo` object, which can then be used to disable the message bar when the user is not allowed to send.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/iamb#274
No description provided.