Page MenuHomePhabricator

D13487.diff
No OneTemporary

D13487.diff

diff --git a/lib/selectors/user-selectors.js b/lib/selectors/user-selectors.js
--- a/lib/selectors/user-selectors.js
+++ b/lib/selectors/user-selectors.js
@@ -25,7 +25,7 @@
} from '../types/minimally-encoded-thread-permissions-types.js';
import type { BaseAppState } from '../types/redux-types.js';
import { userRelationshipStatus } from '../types/relationship-types.js';
-import { threadTypes } from '../types/thread-types-enum.js';
+import { threadTypeIsPersonal } from '../types/thread-types-enum.js';
import type { RawThreadInfos } from '../types/thread-types.js';
import type {
UserInfos,
@@ -183,7 +183,7 @@
for (const threadID in threadInfos) {
const thread = threadInfos[threadID];
if (
- thread.type !== threadTypes.GENESIS_PERSONAL ||
+ !threadTypeIsPersonal(thread.type) ||
!thread.members.find(member => member.id === viewerID)
) {
continue;

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 11:35 PM (19 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2507403
Default Alt Text
D13487.diff (921 B)

Event Timeline