Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32164246
D10975.1765047488.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D10975.1765047488.diff
View Options
diff --git a/keyserver/src/fetchers/thread-fetchers.js b/keyserver/src/fetchers/thread-fetchers.js
--- a/keyserver/src/fetchers/thread-fetchers.js
+++ b/keyserver/src/fetchers/thread-fetchers.js
@@ -9,7 +9,10 @@
getContainingThreadID,
getCommunity,
} from 'lib/shared/thread-utils.js';
-import { hasMinCodeVersion } from 'lib/shared/version-utils.js';
+import {
+ FUTURE_CODE_VERSION,
+ hasMinCodeVersion,
+} from 'lib/shared/version-utils.js';
import type { AvatarDBContent, ClientAvatar } from 'lib/types/avatar-types.js';
import type { RawMessageInfo, MessageInfo } from 'lib/types/message-types.js';
import type { RawThreadInfo } from 'lib/types/minimally-encoded-thread-permissions-types.js';
@@ -285,6 +288,11 @@
viewer.platformDetails,
{ native: 301, web: 56 },
);
+ const futureCodeVersion = hasMinCodeVersion(viewer.platformDetails, {
+ native: FUTURE_CODE_VERSION,
+ web: FUTURE_CODE_VERSION,
+ majorDesktop: FUTURE_CODE_VERSION,
+ });
const threadInfos: {
[string]: LegacyRawThreadInfo | RawThreadInfo,
@@ -300,6 +308,7 @@
filterManageInviteLinksPermission: codeVersionBelow221,
filterVoicedInAnnouncementChannelsPermission: codeVersionBelow283,
minimallyEncodePermissions: minimallyEncodedPermissionsSupported,
+ includeSpecialRoleFieldInRoles: futureCodeVersion,
},
);
if (threadInfo) {
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
@@ -748,6 +748,7 @@
+filterManageInviteLinksPermission?: boolean,
+filterVoicedInAnnouncementChannelsPermission?: boolean,
+minimallyEncodePermissions?: boolean,
+ +includeSpecialRoleFieldInRoles?: boolean,
};
function rawThreadInfoFromServerThreadInfo(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 6, 6:58 PM (16 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5840281
Default Alt Text
D10975.1765047488.diff (1 KB)
Attached To
Mode
D10975: [lib] Add `shouldIncludeSpecialRoleFieldInRoles` to `RawThreadInfoOptions`
Attached
Detach File
Event Timeline
Log In to Comment