mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Fix time selection
This commit is contained in:
parent
9da972bea3
commit
dfe57943f3
@ -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 {
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user