Page MenuHomePhabricator

D13549.diff
No OneTemporary

D13549.diff

diff --git a/web/avatars/thread-avatar.react.js b/web/avatars/thread-avatar.react.js
--- a/web/avatars/thread-avatar.react.js
+++ b/web/avatars/thread-avatar.react.js
@@ -10,7 +10,10 @@
ThreadInfo,
RawThreadInfo,
} from 'lib/types/minimally-encoded-thread-permissions-types.js';
-import { threadTypes } from 'lib/types/thread-types-enum.js';
+import {
+ threadTypeIsPersonal,
+ threadTypeIsPrivate,
+} from 'lib/types/thread-types-enum.js';
import Avatar from './avatar.react.js';
import { useSelector } from '../redux/redux-utils.js';
@@ -31,9 +34,9 @@
);
let displayUserIDForThread;
- if (threadInfo.type === threadTypes.GENESIS_PRIVATE) {
+ if (threadTypeIsPrivate(threadInfo.type)) {
displayUserIDForThread = viewerID;
- } else if (threadInfo.type === threadTypes.GENESIS_PERSONAL) {
+ } else if (threadTypeIsPersonal(threadInfo.type)) {
displayUserIDForThread = getSingleOtherUser(threadInfo, viewerID);
}

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 29, 12:25 AM (20 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2595255
Default Alt Text
D13549.diff (952 B)

Event Timeline