| 923 | } |
| 924 | |
| 925 | jsi::Value |
| 926 | CommRustModule::getFarcasterUsers(jsi::Runtime &rt, jsi::Array farcasterIDs) { |
| 927 | auto farcasterIDsRust = jsiStringArrayToRustVec(farcasterIDs, rt); |
| 928 | return createPromiseAsJSIValue( |
| 929 | rt, [=, this](jsi::Runtime &innerRt, std::shared_ptr<Promise> promise) { |
| 930 | std::string error; |
| 931 | try { |
| 932 | auto currentID = RustPromiseManager::instance.addPromise( |
| 933 | {promise, this->jsInvoker_, innerRt}); |
| 934 | identityGetFarcasterUsers(farcasterIDsRust, currentID); |
| 935 | } catch (const std::exception &e) { |
| 936 | error = e.what(); |
| 937 | }; |
| 938 | if (!error.empty()) { |
| 939 | this->jsInvoker_->invokeAsync( |
| 940 | [error, promise]() { promise->reject(error); }); |
| 941 | } |
| 942 | }); |
| 943 | } |
| 944 | |
| 945 | jsi::Value CommRustModule::linkFarcasterAccount( |
| 946 | jsi::Runtime &rt, |
nothing calls this directly
no test coverage detected