mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2025-03-14 18:55:37 +00:00
update: refresh timeout greater than idle timeout
This commit is contained in:
parent
6f15c9b3f4
commit
8451ea3bc3
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue