mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 17:12:45 +02:00
Fix overflow issue
This commit is contained in:
@@ -299,7 +299,7 @@ class RoomGroupCallStatusBubbleCell: RoomBaseCallBubbleCell {
|
||||
}
|
||||
|
||||
// ended, compute the diff between two dates
|
||||
return TimeInterval(endDate - startDate)/MSEC_PER_SEC
|
||||
return TimeInterval(max(0, Double(endDate) - Double(startDate)))/MSEC_PER_SEC
|
||||
}
|
||||
|
||||
private func readableCallDuration(from startEvent: MXEvent?, endEvent: MXEvent?) -> String {
|
||||
|
||||
Reference in New Issue
Block a user