mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Fix Ephemeral timer
This commit is contained in:
parent
9e630d7366
commit
7bec5efb9a
1 changed files with 1 additions and 1 deletions
|
|
@ -1411,7 +1411,7 @@ class MultilineMessageCell: UICollectionViewCell, UICollectionViewDataSource, UI
|
|||
f.zeroFormattingBehavior = [.pad]
|
||||
|
||||
if ((chatMessage != nil) && chatMessage!.isEphemeral) {
|
||||
let duration = self.chatMessage?.ephemeralExpireTime == 0 ? self.chatMessage?.chatRoom?.ephemeralLifetime : self.chatMessage!.ephemeralExpireTime - Int(Date().timeIntervalSince1970)
|
||||
let duration = self.chatMessage?.ephemeralExpireTime == 0 ? self.chatMessage?.ephemeralLifetime : self.chatMessage!.ephemeralExpireTime - Int(Date().timeIntervalSince1970)
|
||||
if(duration! > 86400){
|
||||
f.allowedUnits = [.day]
|
||||
}else if(duration! > 3600){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue