Preserve typing events in iOS FFI

This commit is contained in:
Mikhail Kilin
2026-05-21 00:41:18 +03:00
parent b3b02835b6
commit 928a5aeda2
6 changed files with 80 additions and 2 deletions

View File

@@ -173,6 +173,7 @@ public enum SessionEvent: Equatable, Sendable {
case reactionChanged(Int64, Int64, [Reaction])
case incomingNotificationCandidate(ChatSummary, Message, String)
case networkChanged(NetworkState)
case typingChanged(TypingState)
case draftChanged(Draft)
case profileLoaded(Profile)
case mediaDownloadProgress(fileId: Int32, downloadedSize: Int64, totalSize: Int64)
@@ -185,3 +186,8 @@ public enum NetworkState: Equatable, Sendable {
case updating
case ready
}
public enum TypingState: Equatable, Sendable {
case idle
case typing(chatId: Int64, userId: Int64, text: String)
}