Browse Source

fix: overflow

merge-requests/53/head
Timo Kösters 5 years ago
parent
commit
a961732f5f
No known key found for this signature in database
GPG Key ID: 24DA7517711A2BA4
  1. 2
      src/database/rooms/edus.rs

2
src/database/rooms/edus.rs

@ -382,7 +382,7 @@ impl RoomEdus { @@ -382,7 +382,7 @@ impl RoomEdus {
.ok()?,
))
})
.take_while(|(_, timestamp)| current_timestamp - timestamp > 5 * 60_000)
.take_while(|(_, timestamp)| current_timestamp.saturating_sub(*timestamp) > 5 * 60_000)
// 5 Minutes
{
// Send new presence events to set the user offline

Loading…
Cancel
Save