Page MenuHomePhorge

D7352.1765350516.diff
No OneTemporary

Size
963 B
Referenced Files
None
Subscribers
None

D7352.1765350516.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
@@ -637,6 +637,12 @@
int repliesCount =
std::lround(threadObj.getProperty(rt, "repliesCount").asNumber());
+
+ jsi::Value maybeAvatar = threadObj.getProperty(rt, "avatar");
+ std::unique_ptr<std::string> avatar = maybeAvatar.isString()
+ ? std::make_unique<std::string>(maybeAvatar.asString(rt).utf8(rt))
+ : nullptr;
+
Thread thread{
threadID,
type,
@@ -651,7 +657,8 @@
roles,
currentUser,
std::move(sourceMessageID),
- repliesCount};
+ repliesCount,
+ std::move(avatar)};
threadStoreOps.push_back(
std::make_unique<ReplaceThreadOperation>(std::move(thread)));

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 10, 7:08 AM (16 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5858765
Default Alt Text
D7352.1765350516.diff (963 B)

Event Timeline