mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Fix crash when entering a DM after a call is hung-up/rejected while being answered (#4403)
This commit is contained in:
@@ -412,6 +412,11 @@ class RoomDirectCallStatusBubbleCell: RoomBaseCallBubbleCell {
|
||||
return (NSTimeIntervalSince1970 - TimeInterval(startDate))/MSEC_PER_SEC
|
||||
}
|
||||
|
||||
guard startDate < endDate else {
|
||||
// started but hung up/rejected on other end around the same time
|
||||
return 0
|
||||
}
|
||||
|
||||
// ended, compute the diff between two dates
|
||||
return TimeInterval(endDate - startDate)/MSEC_PER_SEC
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user