Page MenuHomePhabricator

D9333.id31564.diff
No OneTemporary

D9333.id31564.diff

diff --git a/native/chat/chat.react.js b/native/chat/chat.react.js
--- a/native/chat/chat.react.js
+++ b/native/chat/chat.react.js
@@ -25,10 +25,7 @@
import ThreadDraftUpdater from 'lib/components/thread-draft-updater.react.js';
import { isLoggedIn } from 'lib/selectors/user-selectors.js';
-import {
- threadIsPending,
- threadMembersWithoutAddedAshoat,
-} from 'lib/shared/thread-utils.js';
+import { threadIsPending } from 'lib/shared/thread-utils.js';
import BackgroundChatThreadList from './background-chat-thread-list.react.js';
import ChatHeader from './chat-header.react.js';
@@ -219,8 +216,7 @@
const messageListOptions = ({ navigation, route }) => {
const isSearchEmpty =
- !!route.params.searching &&
- threadMembersWithoutAddedAshoat(route.params.threadInfo).length === 1;
+ !!route.params.searching && route.params.threadInfo.members.length === 1;
const areSettingsEnabled =
!threadIsPending(route.params.threadInfo.id) && !isSearchEmpty;

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 5, 8:12 AM (15 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2614763
Default Alt Text
D9333.id31564.diff (988 B)

Event Timeline