Skip to content

Commit

Permalink
fix: load batch messages
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Jul 21, 2023
1 parent e629a8a commit 692dc2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/XMTPModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ public class XMTPModule: Module {
}

AsyncFunction("loadBatchMessages") { (clientAddress: String, topics: [String]) -> [[UInt8]] in
guard let client = clients[clientAddress] else {
throw Error.noClient
}

var topicsList: [String: Pagination?] = [:]
topics.forEach { topicJSON in
let jsonData = topicJSON.data(using: .utf8)!
Expand Down

0 comments on commit 692dc2e

Please sign in to comment.