0
0
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:
Jordan Rose 2024-05-22 12:11:09 -07:00
parent eb63e3037c
commit 0cea81bb66

View File

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