Skip to content

Commit c500636

Browse files
committed
Abstract key exchange check
1 parent 172e9cc commit c500636

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/metamask-ios-sdk/Classes/Communication/SocketClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ private extension SocketClient {
266266
let msg = message["message"] as? [String: Any],
267267
let type = msg["type"] as? String,
268268
type.contains("key_handshake") {
269-
handleReceiveKeyExchange(message)
270269
return true
271270
}
272271

@@ -315,6 +314,7 @@ private extension SocketClient {
315314

316315
func handleMessage(_ msg: [String: Any]) {
317316
if isKeyExchangeMessage(msg) {
317+
handleReceiveKeyExchange(msg)
318318
return
319319
}
320320

0 commit comments

Comments
 (0)