Page MenuHomePhabricator

D7340.diff
No OneTemporary

D7340.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
@@ -956,34 +956,6 @@
return threadIsWithBlockedUserOnly(threadInfo, viewerID, userInfos, true);
}
-function rawThreadInfoFromThreadInfo(threadInfo: ThreadInfo): RawThreadInfo {
- let rawThreadInfo: RawThreadInfo = {
- id: threadInfo.id,
- type: threadInfo.type,
- name: threadInfo.name,
- description: threadInfo.description,
- color: threadInfo.color,
- creationTime: threadInfo.creationTime,
- parentThreadID: threadInfo.parentThreadID,
- containingThreadID: threadInfo.containingThreadID,
- community: threadInfo.community,
- members: threadInfo.members.map(relativeMemberInfo => ({
- id: relativeMemberInfo.id,
- role: relativeMemberInfo.role,
- permissions: relativeMemberInfo.permissions,
- isSender: relativeMemberInfo.isSender,
- })),
- roles: threadInfo.roles,
- currentUser: threadInfo.currentUser,
- repliesCount: threadInfo.repliesCount,
- };
- const { sourceMessageID } = threadInfo;
- if (sourceMessageID) {
- rawThreadInfo = { ...rawThreadInfo, sourceMessageID };
- }
- return rawThreadInfo;
-}
-
const threadTypeDescriptions: { [ThreadType]: string } = {
[threadTypes.COMMUNITY_OPEN_SUBTHREAD]:
'Anybody in the parent channel can see an open subchannel.',
@@ -1602,7 +1574,6 @@
filterThreadEditDetailedPermissions,
threadUIName,
threadInfoFromRawThreadInfo,
- rawThreadInfoFromThreadInfo,
threadTypeDescriptions,
usersInThreadInfo,
memberIsAdmin,

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 2, 12:35 PM (21 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2607604
Default Alt Text
D7340.diff (1 KB)

Event Timeline