Page MenuHomePhabricator

D11740.diff
No OneTemporary

D11740.diff

diff --git a/lib/shared/thread-utils.js b/lib/shared/thread-utils.js
--- a/lib/shared/thread-utils.js
+++ b/lib/shared/thread-utils.js
@@ -959,11 +959,7 @@
community: rawThreadInfo.community,
members: getRelativeMemberInfos(rawThreadInfo, viewerID, userInfos),
roles: rawThreadInfo.roles,
- currentUser: getMinimallyEncodedCurrentUser(
- rawThreadInfo,
- viewerID,
- userInfos,
- ),
+ currentUser: getCurrentUser(rawThreadInfo, viewerID, userInfos),
repliesCount: rawThreadInfo.repliesCount,
};
@@ -994,7 +990,7 @@
return threadInfo;
}
-function getMinimallyEncodedCurrentUser(
+function getCurrentUser(
threadInfo: RawThreadInfo | ThreadInfo,
viewerID: ?string,
userInfos: UserInfos,
@@ -1328,11 +1324,7 @@
return {
...updatedThread,
- currentUser: getMinimallyEncodedCurrentUser(
- updatedThread,
- viewerID,
- userInfos,
- ),
+ currentUser: getCurrentUser(updatedThread, viewerID, userInfos),
};
},
[
@@ -1886,7 +1878,7 @@
createPendingSidebar,
pendingThreadType,
createRealThreadFromPendingThread,
- getMinimallyEncodedCurrentUser,
+ getCurrentUser,
threadFrozenDueToBlock,
threadFrozenDueToViewerBlock,
rawThreadInfoFromServerThreadInfo,

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 28, 4:01 AM (7 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2723615
Default Alt Text
D11740.diff (1 KB)

Event Timeline