update: refresh timeout greater than idle timeout

This commit is contained in:
Holger Huo 2025-01-08 18:24:27 +08:00 committed by strawberry
parent 6f15c9b3f4
commit 8451ea3bc3

View file

@ -95,7 +95,7 @@ impl Service {
/// Pings the presence of the given user in the given room, setting the
/// specified state.
pub async fn ping_presence(&self, user_id: &UserId, new_state: &PresenceState) -> Result<()> {
const REFRESH_TIMEOUT: u64 = 60 * 25 * 1000;
const REFRESH_TIMEOUT: u64 = 60 * 1000;
let last_presence = self.db.get_presence(user_id).await;
let state_changed = match last_presence {