feat: sort inbox by time after added new messages

This commit is contained in:
2025-02-18 17:04:19 +07:00
parent 85c485a4e4
commit 50242981a5
3 changed files with 12 additions and 1 deletions

View File

@@ -124,6 +124,10 @@ impl Room {
}
}
pub fn last_seen(&self) -> &LastSeen {
&self.last_seen
}
/// Get all public keys from current room
pub fn pubkeys(&self) -> Vec<PublicKey> {
let mut pubkeys: Vec<_> = self.members.iter().map(|m| m.public_key()).collect();