mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 20:56:49 +00:00
fix: presence timer not working
This commit is contained in:
1 parent
0074f903d8
commit
6f15c9b3f4
3 files changed
+24
-12
No files matched your search
@@ -46,11 +46,7 @@ impl Presence {
|
||||
users: &users::Service,
|
||||
) -> PresenceEvent {
|
||||
let now = utils::millis_since_unix_epoch();
|
||||
let last_active_ago = if self.currently_active {
|
||||
None
|
||||
} else {
|
||||
Some(UInt::new_saturating(now.saturating_sub(self.last_active_ts)))
|
||||
};
|
||||
let last_active_ago = Some(UInt::new_saturating(now.saturating_sub(self.last_active_ts)));
|
||||
|
||||
PresenceEvent {
|
||||
sender: user_id.to_owned(),
|
||||
|
||||
Reference in new issue
Block a user