Page MenuHomePhabricator

D11204.id39359.diff
No OneTemporary

D11204.id39359.diff

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,10 +9,7 @@
getContainingThreadID,
getCommunity,
} from 'lib/shared/thread-utils.js';
-import {
- FUTURE_CODE_VERSION,
- hasMinCodeVersion,
-} from 'lib/shared/version-utils.js';
+import { 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';
@@ -288,10 +285,9 @@
viewer.platformDetails,
{ native: 301, web: 56 },
);
- const futureCodeVersion = hasMinCodeVersion(viewer.platformDetails, {
- native: FUTURE_CODE_VERSION,
- web: FUTURE_CODE_VERSION,
- majorDesktop: FUTURE_CODE_VERSION,
+ const specialRoleFieldSupported = hasMinCodeVersion(viewer.platformDetails, {
+ native: 336,
+ web: 79,
});
const threadInfos: {
@@ -308,7 +304,7 @@
filterManageInviteLinksPermission: codeVersionBelow221,
filterVoicedInAnnouncementChannelsPermission: codeVersionBelow283,
minimallyEncodePermissions: minimallyEncodedPermissionsSupported,
- includeSpecialRoleFieldInRoles: futureCodeVersion,
+ includeSpecialRoleFieldInRoles: specialRoleFieldSupported,
},
);
if (threadInfo) {

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 25, 7:33 AM (7 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2701939
Default Alt Text
D11204.id39359.diff (1 KB)

Event Timeline