Page MenuHomePhabricator

D7290.id24585.diff
No OneTemporary

D7290.id24585.diff

diff --git a/native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp b/native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
--- a/native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
+++ b/native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
@@ -256,6 +256,11 @@
: jsi::Value::null());
jsiThread.setProperty(rt, "repliesCount", thread.replies_count);
+ if (thread.avatar) {
+ auto avatar = jsi::String::createFromUtf8(rt, *thread.avatar);
+ jsiThread.setProperty(rt, "avatar", avatar);
+ }
+
jsiThreads.setValueAtIndex(rt, writeIdx++, jsiThread);
}
return jsiThreads;

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 26, 9:33 AM (11 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2705181
Default Alt Text
D7290.id24585.diff (617 B)

Event Timeline