From 76da40a328e22c5459a77a7e772e998bdd0d915a Mon Sep 17 00:00:00 2001 From: Allain Magyar Date: Fri, 19 Jan 2024 15:33:35 -0300 Subject: [PATCH] fix: didcomm connection runner message filtering --- .../Sources/Protocols/Connection/DIDCommConnectionRunner.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AtalaPrismSDK/PrismAgent/Sources/Protocols/Connection/DIDCommConnectionRunner.swift b/AtalaPrismSDK/PrismAgent/Sources/Protocols/Connection/DIDCommConnectionRunner.swift index 71c73bf8..e5b29cfc 100644 --- a/AtalaPrismSDK/PrismAgent/Sources/Protocols/Connection/DIDCommConnectionRunner.swift +++ b/AtalaPrismSDK/PrismAgent/Sources/Protocols/Connection/DIDCommConnectionRunner.swift @@ -26,7 +26,7 @@ class DIDCommConnectionRunner { try await connection.sendMessage(request.makeMessage()) let message = try await pluto.getAllMessagesReceived() .flatMap { $0.publisher } - .first { $0.thid == request.id } + .first { $0.thid == request.thid } .await() guard