Skip to content
Snippets Groups Projects
Unverified Commit a961732f authored by Timo Kösters's avatar Timo Kösters
Browse files

fix: overflow

parent a8231eef
No related branches found
No related tags found
No related merge requests found
...@@ -382,7 +382,7 @@ pub fn presence_maintain( ...@@ -382,7 +382,7 @@ pub fn presence_maintain(
.ok()?, .ok()?,
)) ))
}) })
.take_while(|(_, timestamp)| current_timestamp - timestamp > 5 * 60_000) .take_while(|(_, timestamp)| current_timestamp.saturating_sub(*timestamp) > 5 * 60_000)
// 5 Minutes // 5 Minutes
{ {
// Send new presence events to set the user offline // Send new presence events to set the user offline
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment