Page MenuHomePhabricator

D12573.diff
No OneTemporary

D12573.diff

diff --git a/lib/shared/redux/update-roles-and-permissions.js b/lib/shared/redux/update-roles-and-permissions.js
--- a/lib/shared/redux/update-roles-and-permissions.js
+++ b/lib/shared/redux/update-roles-and-permissions.js
@@ -10,6 +10,7 @@
RawThreadInfos,
LegacyRawThreadInfo,
} from '../../types/thread-types.js';
+import type { RawThreadInfoWithMemberPermissions } from '../../types/minimally-encoded-thread-permissions-types.js';
function updateRolesAndPermissions(
threadStoreInfos: RawThreadInfos,
diff --git a/lib/types/minimally-encoded-thread-permissions-types.js b/lib/types/minimally-encoded-thread-permissions-types.js
--- a/lib/types/minimally-encoded-thread-permissions-types.js
+++ b/lib/types/minimally-encoded-thread-permissions-types.js
@@ -183,7 +183,7 @@
};
const decodeMinimallyEncodedRawThreadInfo = (
- minimallyEncodedRawThreadInfo: RawThreadInfo,
+ minimallyEncodedRawThreadInfo: RawThreadInfoWithMemberPermissions,
): LegacyRawThreadInfo => {
const { minimallyEncoded, members, roles, currentUser, ...rest } =
minimallyEncodedRawThreadInfo;

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 26, 12:40 PM (11 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2706831
Default Alt Text
D12573.diff (1 KB)

Event Timeline