fix(presence): fix configuration values for presence status
This commit is contained in:
parent
4d22cb502e
commit
2eb5907d95
1 changed files with 2 additions and 2 deletions
|
@ -391,9 +391,9 @@ fn parse_presence_event(bytes: &[u8], presence_timestamp: u64) -> Result<Presenc
|
||||||
fn determine_presence_state(last_active_ago: u64) -> PresenceState {
|
fn determine_presence_state(last_active_ago: u64) -> PresenceState {
|
||||||
let globals = &services().globals;
|
let globals = &services().globals;
|
||||||
|
|
||||||
return if last_active_ago < globals.presence_idle_timeout() {
|
return if last_active_ago < globals.presence_idle_timeout() * 1000 {
|
||||||
PresenceState::Online
|
PresenceState::Online
|
||||||
} else if last_active_ago < globals.presence_offline_timeout() {
|
} else if last_active_ago < globals.presence_offline_timeout() * 1000 {
|
||||||
PresenceState::Unavailable
|
PresenceState::Unavailable
|
||||||
} else {
|
} else {
|
||||||
PresenceState::Offline
|
PresenceState::Offline
|
||||||
|
|
Loading…
Add table
Reference in a new issue