Skip to content

Commit

Permalink
turn off message requests for now (#3464)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpme authored Mar 28, 2023
1 parent 2e61e22 commit c6b425f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions packages/app-mobile/src/components/Messages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -314,19 +314,20 @@ export function MessageList({
if (requestCount > 0) {
// @ts-ignore
// Renders "Message Requests" at the top
s.unshift({
id: -1,
});
// s.unshift({
// id: -1,
// });
}

return s;
}, [allChats, requestCount]);

const renderItem = useCallback(
({ item, index }) => {
if (requestCount > 0 && item.id === -1) {
return <ChatListItemMessageRequest requestCount={requestCount} />;
}
// turn off message requests for now so we can ship a new build
// if (requestCount > 0 && item.id === -1) {
// return <ChatListItemMessageRequest requestCount={requestCount} />;
// }

return (
<ChatListItem
Expand All @@ -343,7 +344,7 @@ export function MessageList({
/>
);
},
[onPressRow, requestCount]
[onPressRow]
);

return (
Expand Down

1 comment on commit c6b425f

@vercel
Copy link

@vercel vercel bot commented on c6b425f Mar 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.