Fix time selection

This commit is contained in:
Ali 2022-04-01 23:48:13 +04:00
parent 9da972bea3
commit dfe57943f3
2 changed files with 2 additions and 2 deletions

View File

@ -329,7 +329,7 @@ public func universalServiceMessageString(presentationData: (PresentationTheme,
let messagePeer = message.peers[message.id.peerId] let messagePeer = message.peers[message.id.peerId]
if timeout > 0 { if timeout > 0 {
let timeValue = timeIntervalString(strings: strings, value: timeout, preferLowerValue: true) let timeValue = timeIntervalString(strings: strings, value: timeout, preferLowerValue: false)
let string: String let string: String
if let _ = messagePeer as? TelegramUser { if let _ = messagePeer as? TelegramUser {

View File

@ -422,7 +422,7 @@ class ChatTimerScreenNode: ViewControllerTracingNode, UIScrollViewDelegate, UIPi
case .sendTimer: case .sendTimer:
strongSelf.completion?(timerValues[pickerView.selectedRow(inComponent: 0)]) strongSelf.completion?(timerValues[pickerView.selectedRow(inComponent: 0)])
case .autoremove: case .autoremove:
let timeInterval = pickerView.selectedRow(inComponent: 0) * 24 * 60 * 60 + pickerView.selectedRow(inComponent: 1) * 60 * 60 + pickerView.selectedRow(inComponent: 2) * 60 let timeInterval = strongSelf.autoremoveTimerValues[pickerView.selectedRow(inComponent: 0)]
strongSelf.completion?(Int32(timeInterval)) strongSelf.completion?(Int32(timeInterval))
case .mute: case .mute:
break break