feat: add pinned rooms and groups to the sidebar

This commit is contained in:
2026-10-05 07:19:31 +07:00
parent acb07126c9
commit c544dd4e36
3 changed files with 238 additions and 46 deletions
+9
View File
@@ -801,6 +801,15 @@ pub enum Membership {
}
impl Membership {
pub fn status(&self) -> Option<&'static str> {
match self {
Self::Pending { .. } => Some("Requested"),
Self::Refused { .. } => Some("Refused"),
Self::Removed => Some("Removed"),
Self::Member | Self::Unknown => None,
}
}
pub fn from_events(events: &[Event], me: PublicKey) -> Self {
let mut latest: Option<&Event> = None;