aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/messages/MessagesHeader.tsx4
-rw-r--r--src/screens/chat/ChatListScreen.tsx1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/components/messages/MessagesHeader.tsx b/src/components/messages/MessagesHeader.tsx
index 2b20f48c..18c89de3 100644
--- a/src/components/messages/MessagesHeader.tsx
+++ b/src/components/messages/MessagesHeader.tsx
@@ -17,7 +17,9 @@ const MessagesHeader: React.FC<MessagesHeaderProps> = ({createChannel}) => {
<View style={styles.header}>
<Text style={styles.headerText}>Messages</Text>
{unread && unread !== 0 && (
- <Text style={styles.unreadText}>{unread} unread</Text>
+ <Text style={styles.unreadText}>
+ {unread > 99 ? '99+' : unread} unread
+ </Text>
)}
<View style={styles.flex} />
<TouchableOpacity style={styles.compose} onPress={createChannel}>
diff --git a/src/screens/chat/ChatListScreen.tsx b/src/screens/chat/ChatListScreen.tsx
index 9011ed4a..98a7f097 100644
--- a/src/screens/chat/ChatListScreen.tsx
+++ b/src/screens/chat/ChatListScreen.tsx
@@ -80,6 +80,7 @@ const ChatListScreen: React.FC<ChatListScreenProps> = ({navigation}) => {
watch: true,
}}
sort={{last_message_at: -1}}
+ maxUnreadCount={99}
/>
</View>
</Chat>