mirror of
https://github.com/signalapp/libsignal.git
synced 2024-09-19 19:42:19 +02:00
swift: ChatService.didReceiveIncomingMessage's sendAck is @escaping
...since acks of incoming messages are asynchronous (they don't happen until the message is either fully processed or saved durably).
This commit is contained in:
parent
eb63e3037c
commit
0cea81bb66
@ -12,7 +12,7 @@ public enum IpType: UInt8 {
|
||||
}
|
||||
|
||||
public protocol ChatListener: AnyObject {
|
||||
func chatService(_ chat: ChatService, didReceiveIncomingMessage envelope: Data, serverDeliveryTimestamp: UInt64, sendAck: () async throws -> Void)
|
||||
func chatService(_ chat: ChatService, didReceiveIncomingMessage envelope: Data, serverDeliveryTimestamp: UInt64, sendAck: @escaping () async throws -> Void)
|
||||
func chatServiceDidReceiveQueueEmpty(_ chat: ChatService)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user