Merge commit '7621e2f8dec938cf48181c8b10afc9b01f444e68' into beta

This commit is contained in:
Ilya Laktyushin
2025-12-06 02:17:48 +04:00
commit 8344b97e03
28070 changed files with 7995182 additions and 0 deletions
@@ -0,0 +1,37 @@
import Foundation
import SwiftSignalKit
public enum ChatLocationInput {
case peer(peerId: PeerId, threadId: Int64?)
case thread(peerId: PeerId, threadId: Int64, data: Signal<MessageHistoryViewExternalInput, NoError>)
case customChatContents
}
public extension ChatLocationInput {
var peerId: PeerId? {
switch self {
case let .peer(peerId, _):
return peerId
case let .thread(peerId, _, _):
return peerId
case .customChatContents:
return nil
}
}
var threadId: Int64? {
switch self {
case let .peer(_, threadId):
return threadId
case let .thread(_, threadId, _):
return threadId
case .customChatContents:
return nil
}
}
}
public enum ResolvedChatLocationInput {
case peer(peerId: PeerId, threadId: Int64?)
case external(MessageHistoryViewExternalInput)
}