From c93db0f872938affb1aed0763257c37722922bcc Mon Sep 17 00:00:00 2001 From: Wesley Aptekar-Cassels Date: Thu, 8 Apr 2021 14:52:23 +0800 Subject: [PATCH] TopicItem [nfc]: Make stream name required. It will be needed for the actionsheet, and will cause bugs for it to not exist. --- src/streams/TopicItem.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/streams/TopicItem.js b/src/streams/TopicItem.js index e481ae3191a..2195ba4b4e9 100644 --- a/src/streams/TopicItem.js +++ b/src/streams/TopicItem.js @@ -22,7 +22,7 @@ const componentStyles = createStyleSheet({ }); type Props = $ReadOnly<{| - stream?: string, + stream: string, name: string, isMuted?: boolean, isSelected?: boolean, @@ -31,14 +31,7 @@ type Props = $ReadOnly<{| |}>; export default function TopicItem(props: Props) { - const { - name, - stream = '', - isMuted = false, - isSelected = false, - unreadCount = 0, - onPress, - } = props; + const { name, stream, isMuted = false, isSelected = false, unreadCount = 0, onPress } = props; return ( onPress(stream, name)} onLongPress={() => showToast(name)}>