Various improvements

This commit is contained in:
Isaac 2025-06-05 19:09:18 +08:00
parent 40b770dde8
commit b5c3d6f34f
14 changed files with 248 additions and 123 deletions

View file

@ -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