diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/messages/ChannelPreview.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/messages/ChannelPreview.tsx b/src/components/messages/ChannelPreview.tsx index 8bd3a745..4c3eb9d8 100644 --- a/src/components/messages/ChannelPreview.tsx +++ b/src/components/messages/ChannelPreview.tsx @@ -37,6 +37,11 @@ const ChannelPreview: React.FC< const online = isOnline(member?.user?.last_active); const unread = channel.state.unreadCount > 0; + // Hide channel if no message was exchanged + if (channel.state.messages.length === 0) { + return null; + } + return ( <TouchableOpacity style={styles.container} |