Add Swift UniFFI session bridge adapter

This commit is contained in:
Mikhail Kilin
2026-05-21 00:15:50 +03:00
parent 9b4e277ce0
commit 161cc343da
2 changed files with 236 additions and 0 deletions

View File

@@ -156,12 +156,21 @@ public struct Profile: Equatable, Sendable {
public enum SessionEvent: Equatable, Sendable {
case authChanged(AuthState)
case chatListChanged([ChatSummary])
case folderListChanged([Folder])
case messageAdded(Int64, Message)
case messageUpdated(Int64, Message)
case messageDeleted(Int64, [Int64])
case reactionChanged(Int64, Int64, [Reaction])
case incomingNotificationCandidate(ChatSummary, Message, String)
case networkChanged(NetworkState)
case draftChanged(Draft)
case profileLoaded(Profile)
case mediaDownloadProgress(fileId: Int32, downloadedSize: Int64, totalSize: Int64)
}
public enum NetworkState: Equatable, Sendable {
case waitingForNetwork
case connectingToProxy
case connecting
case updating
case ready