mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 20:56:49 +00:00
feat(presence): implement presence functionality
This commit is contained in:
1 parent
22eff2d29c
commit
ba03edfae9
12 files changed
+545
-354
No files matched your search
@@ -367,6 +367,18 @@ impl Service {
|
||||
&self.config.emergency_password
|
||||
}
|
||||
|
||||
pub fn allow_presence(&self) -> bool {
|
||||
self.config.allow_presence
|
||||
}
|
||||
|
||||
pub fn presence_idle_timeout_s(&self) -> u64 {
|
||||
self.config.presence_idle_timeout_s
|
||||
}
|
||||
|
||||
pub fn presence_offline_timeout_s(&self) -> u64 {
|
||||
self.config.presence_offline_timeout_s
|
||||
}
|
||||
|
||||
pub fn supported_room_versions(&self) -> Vec<RoomVersionId> {
|
||||
let mut room_versions: Vec<RoomVersionId> = vec![];
|
||||
room_versions.extend(self.stable_room_versions.clone());
|
||||
|
||||
Reference in new issue
Block a user