mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Various improvements
This commit is contained in:
parent
40b770dde8
commit
b5c3d6f34f
14 changed files with 248 additions and 123 deletions
|
|
@ -10,30 +10,6 @@ import ChatInterfaceState
|
|||
import ChatContextQuery
|
||||
import AudioWaveform
|
||||
|
||||
public extension ChatLocation {
|
||||
var peerId: PeerId? {
|
||||
switch self {
|
||||
case let .peer(peerId):
|
||||
return peerId
|
||||
case let .replyThread(replyThreadMessage):
|
||||
return replyThreadMessage.peerId
|
||||
case .customChatContents:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
var threadId: Int64? {
|
||||
switch self {
|
||||
case .peer:
|
||||
return nil
|
||||
case let .replyThread(replyThreadMessage):
|
||||
return replyThreadMessage.threadId
|
||||
case .customChatContents:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public enum ChatMediaInputMode {
|
||||
case gif
|
||||
case other
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue