Page MenuHomePhabricator

D12573.id41697.diff
No OneTemporary

D12573.id41697.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
Fri, Dec 27, 12:17 AM (11 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2706831
Default Alt Text
D12573.id41697.diff (1 KB)

Event Timeline