add: clear online status on server boot

This commit is contained in:
Holger Huo authored and strawberry committed 2025-01-11 21:43:57 -05:00
1 parent 8451ea3bc3
commit b71201cf19
2 files changed
+43

No files matched your search

+5
View File
@@ -123,6 +123,11 @@ impl Services {
.start()
.await?;
// clear online statuses
if self.server.config.allow_local_presence {
_ = self.presence.unset_all_presence().await;
}
// set the server user as online
if self.server.config.allow_local_presence && !self.db.is_read_only() {
_ = self