diff --git a/build-system/fake-codesigning/profiles/BroadcastUpload.mobileprovision b/build-system/fake-codesigning/profiles/BroadcastUpload.mobileprovision index 873aafa1f2..76f8200f50 100644 Binary files a/build-system/fake-codesigning/profiles/BroadcastUpload.mobileprovision and b/build-system/fake-codesigning/profiles/BroadcastUpload.mobileprovision differ diff --git a/build-system/fake-codesigning/profiles/Intents.mobileprovision b/build-system/fake-codesigning/profiles/Intents.mobileprovision index 013624d4f9..8787665b41 100644 Binary files a/build-system/fake-codesigning/profiles/Intents.mobileprovision and b/build-system/fake-codesigning/profiles/Intents.mobileprovision differ diff --git a/build-system/fake-codesigning/profiles/NotificationContent.mobileprovision b/build-system/fake-codesigning/profiles/NotificationContent.mobileprovision index 4b3b44af1a..915083850a 100644 Binary files a/build-system/fake-codesigning/profiles/NotificationContent.mobileprovision and b/build-system/fake-codesigning/profiles/NotificationContent.mobileprovision differ diff --git a/build-system/fake-codesigning/profiles/NotificationService.mobileprovision b/build-system/fake-codesigning/profiles/NotificationService.mobileprovision index 84546fe604..022bdb091f 100644 Binary files a/build-system/fake-codesigning/profiles/NotificationService.mobileprovision and b/build-system/fake-codesigning/profiles/NotificationService.mobileprovision differ diff --git a/build-system/fake-codesigning/profiles/Share.mobileprovision b/build-system/fake-codesigning/profiles/Share.mobileprovision index c15af3868c..d5c133b40c 100644 Binary files a/build-system/fake-codesigning/profiles/Share.mobileprovision and b/build-system/fake-codesigning/profiles/Share.mobileprovision differ diff --git a/build-system/fake-codesigning/profiles/Telegram.mobileprovision b/build-system/fake-codesigning/profiles/Telegram.mobileprovision index b43d591cb0..496ad79a68 100644 Binary files a/build-system/fake-codesigning/profiles/Telegram.mobileprovision and b/build-system/fake-codesigning/profiles/Telegram.mobileprovision differ diff --git a/build-system/fake-codesigning/profiles/WatchApp.mobileprovision b/build-system/fake-codesigning/profiles/WatchApp.mobileprovision index fa8ad80736..0eb5a56cb3 100644 Binary files a/build-system/fake-codesigning/profiles/WatchApp.mobileprovision and b/build-system/fake-codesigning/profiles/WatchApp.mobileprovision differ diff --git a/build-system/fake-codesigning/profiles/WatchExtension.mobileprovision b/build-system/fake-codesigning/profiles/WatchExtension.mobileprovision index 77b4fd0fb3..85b1a95f8d 100644 Binary files a/build-system/fake-codesigning/profiles/WatchExtension.mobileprovision and b/build-system/fake-codesigning/profiles/WatchExtension.mobileprovision differ diff --git a/build-system/fake-codesigning/profiles/Widget.mobileprovision b/build-system/fake-codesigning/profiles/Widget.mobileprovision index 5c9f796915..f6fe6677e2 100644 Binary files a/build-system/fake-codesigning/profiles/Widget.mobileprovision and b/build-system/fake-codesigning/profiles/Widget.mobileprovision differ diff --git a/submodules/MediaPlayer/Sources/MediaPlayerTimeTextNode.swift b/submodules/MediaPlayer/Sources/MediaPlayerTimeTextNode.swift index e9d8038454..0ab3d88b64 100644 --- a/submodules/MediaPlayer/Sources/MediaPlayerTimeTextNode.swift +++ b/submodules/MediaPlayer/Sources/MediaPlayerTimeTextNode.swift @@ -167,10 +167,10 @@ public final class MediaPlayerTimeTextNode: ASDisplayNode { } switch self.mode { case .normal: - let timestamp = Int32(timestampSeconds) + let timestamp = Int32(truncatingIfNeeded: Int64(floor(timestampSeconds))) self.state = MediaPlayerTimeTextNodeState(hours: timestamp / (60 * 60), minutes: timestamp % (60 * 60) / 60, seconds: timestamp % 60) case .reversed: - let timestamp = abs(Int32(timestampSeconds - statusValue.duration)) + let timestamp = abs(Int32(Int32(truncatingIfNeeded: Int64(floor(timestampSeconds - statusValue.duration))))) self.state = MediaPlayerTimeTextNodeState(hours: timestamp / (60 * 60), minutes: timestamp % (60 * 60) / 60, seconds: timestamp % 60) } } else if let defaultDuration = self.defaultDuration { diff --git a/submodules/TelegramUI/Components/Chat/ChatMessageInteractiveFileNode/Sources/ChatMessageInteractiveFileNode.swift b/submodules/TelegramUI/Components/Chat/ChatMessageInteractiveFileNode/Sources/ChatMessageInteractiveFileNode.swift index 25bbee8956..bf42b0daea 100644 --- a/submodules/TelegramUI/Components/Chat/ChatMessageInteractiveFileNode/Sources/ChatMessageInteractiveFileNode.swift +++ b/submodules/TelegramUI/Components/Chat/ChatMessageInteractiveFileNode/Sources/ChatMessageInteractiveFileNode.swift @@ -439,6 +439,7 @@ public final class ChatMessageInteractiveFileNode: ASDisplayNode { guard let strongSelf = self else { return } + strongSelf.transcribeDisposable?.dispose() strongSelf.transcribeDisposable = nil }) } else { @@ -447,6 +448,7 @@ public final class ChatMessageInteractiveFileNode: ASDisplayNode { guard let strongSelf = self else { return } + strongSelf.transcribeDisposable?.dispose() strongSelf.transcribeDisposable = nil }) } diff --git a/submodules/TelegramUI/Components/Chat/ChatMessageInteractiveInstantVideoNode/Sources/ChatMessageInteractiveInstantVideoNode.swift b/submodules/TelegramUI/Components/Chat/ChatMessageInteractiveInstantVideoNode/Sources/ChatMessageInteractiveInstantVideoNode.swift index 82efafc83a..63cb453c9d 100644 --- a/submodules/TelegramUI/Components/Chat/ChatMessageInteractiveInstantVideoNode/Sources/ChatMessageInteractiveInstantVideoNode.swift +++ b/submodules/TelegramUI/Components/Chat/ChatMessageInteractiveInstantVideoNode/Sources/ChatMessageInteractiveInstantVideoNode.swift @@ -198,6 +198,7 @@ public class ChatMessageInteractiveInstantVideoNode: ASDisplayNode { self.playbackStatusDisposable.dispose() self.playerStatusDisposable.dispose() self.fetchedThumbnailDisposable.dispose() + self.transcribeDisposable?.dispose() } override public func didLoad() { @@ -1670,6 +1671,7 @@ public class ChatMessageInteractiveInstantVideoNode: ASDisplayNode { guard let strongSelf = self else { return } + strongSelf.transcribeDisposable?.dispose() strongSelf.transcribeDisposable = nil }) }