mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-05-26 20:54:14 +00:00
update: refresh timeout greater than idle timeout
This commit is contained in:
@@ -95,7 +95,7 @@ pub async fn get_presence(&self, user_id: &UserId) -> Result<PresenceEvent> {
|
||||
/// 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 {
|
||||
|
||||
Reference in New Issue
Block a user