feat(webapi): include member_permission in RoomMetadata

This is currently only included by `room_list` endpoint with
authentication.
This commit is contained in:
oxalica 2024-09-10 09:33:59 -04:00
parent 5eeb12c294
commit 4f48b390f7
3 changed files with 23 additions and 7 deletions

View file

@ -329,6 +329,8 @@ pub struct RoomMetadata {
/// This may or may not be a precise number.
#[serde(skip_serializing_if = "Option::is_none")]
pub unseen_cnt: Option<u64>,
#[serde(skip_serializing_if = "Option::is_none")]
pub member_permission: Option<MemberPermission>,
}
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]