mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
Fix overflow issue
This commit is contained in:
parent
0bfac2533e
commit
ec683c266c
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue