Skip to content

Commit

Permalink
Merge pull request #126 from xmtp/np/fix-codec-registration-bug
Browse files Browse the repository at this point in the history
fix: codec not being registered
  • Loading branch information
nplasterer authored Sep 26, 2023
2 parents e412cd0 + 9652871 commit 935c921
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ios/XMTPModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,8 @@ public class XMTPModule: Module {
private var clients: [String: XMTP.Client] = [:]

// A method to update the conversations
func updateClient(key: String, client: XMTP.Client?) {
if clients[key] == nil, let client {
ContentJson.initCodecs(client: client)
}

func updateClient(key: String, client: XMTP.Client) {
ContentJson.initCodecs(client: client)
clients[key] = client
}

Expand Down

0 comments on commit 935c921

Please sign in to comment.