[FIX] Search messages crashing when show a thread message (#2618)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Djorkaeff Alexandre 2020-11-06 12:47:58 -03:00 committed by GitHub
parent f7286675c3
commit 192f3f1aa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ const Thread = React.memo(({
} = useContext(MessageContext); } = useContext(MessageContext);
const time = formatDateThreads(tlm); const time = formatDateThreads(tlm);
const buttonText = formatMessageCount(tcount, THREAD); const buttonText = formatMessageCount(tcount, THREAD);
const badgeColor = getBadgeColor(id); const badgeColor = getBadgeColor?.(id);
const isFollowing = replies?.find(u => u === user.id); const isFollowing = replies?.find(u => u === user.id);
return ( return (
<View style={styles.buttonContainer}> <View style={styles.buttonContainer}>