Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3376215
D13566.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D13566.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
@@ -10,10 +10,7 @@
getContainingThreadID,
getCommunity,
} from 'lib/shared/thread-utils.js';
-import {
- hasMinCodeVersion,
- NEXT_CODE_VERSION,
-} 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 { ThinRawThreadInfo } from 'lib/types/minimally-encoded-thread-permissions-types.js';
@@ -310,7 +307,7 @@
);
const stripMemberPermissions = hasMinCodeVersion(viewer.platformDetails, {
native: 379,
- web: NEXT_CODE_VERSION,
+ web: 88,
});
const threadInfos: {
diff --git a/lib/utils/member-info-utils.js b/lib/utils/member-info-utils.js
--- a/lib/utils/member-info-utils.js
+++ b/lib/utils/member-info-utils.js
@@ -42,14 +42,6 @@
for (const threadID in threadStoreInfos) {
const rawThreadInfo: ThinRawThreadInfoWithPermissions =
threadStoreInfos[threadID];
-
- // $FlowFixMe: We're only stripping permissions for thin threads.
- if (rawThreadInfo.thick) {
- console.log('Encountered thick thread... skipping permission stripping.');
- strippedThreadStoreInfos[threadID] = rawThreadInfo;
- continue;
- }
-
const updatedRawThreadInfo: ThinRawThreadInfo =
stripMemberPermissionsFromRawThreadInfo(rawThreadInfo);
strippedThreadStoreInfos[threadID] = updatedRawThreadInfo;
diff --git a/web/redux/persist.js b/web/redux/persist.js
--- a/web/redux/persist.js
+++ b/web/redux/persist.js
@@ -686,7 +686,12 @@
stripMemberPermissions,
);
- return { state, ops: dbOperations };
+ // await sharedWorker.schedule({
+ // type: workerRequestMessageTypes.PROCESS_STORE_OPERATIONS,
+ // storeOperations: { threadStoreOperations: dbOperations },
+ // });
+
+ return { state, ops: { threadStoreOperations: dbOperations } };
},
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 10:43 PM (22 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2591964
Default Alt Text
D13566.diff (2 KB)
Attached To
Mode
D13566: Ignore
Attached
Detach File
Event Timeline
Log In to Comment