Page MenuHomePhabricator

D13566.id44806.diff
No OneTemporary

D13566.id44806.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
@@ -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

Mime Type
text/plain
Expires
Thu, Oct 3, 7:04 PM (16 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2219681
Default Alt Text
D13566.id44806.diff (2 KB)

Event Timeline