From ec66cc41114febb847ea3b336f7a942a9d582325 Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Mon, 25 Sep 2023 17:23:42 -0700 Subject: [PATCH] fix: codec not being registered --- ios/XMTPModule.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ios/XMTPModule.swift b/ios/XMTPModule.swift index b3586a023..3a97d17c7 100644 --- a/ios/XMTPModule.swift +++ b/ios/XMTPModule.swift @@ -79,11 +79,8 @@ public class XMTPModule: Module { // A method to update the conversations func updateClient(key: String, client: XMTP.Client?) { - if clients[key] == nil, let client { - ContentJson.initCodecs(client: client) - } - clients[key] = client + ContentJson.initCodecs(client: clients[key]) } // A method to retrieve a conversation