Reactions: don't add if reactions are empty

This commit is contained in:
ganfra 2022-11-10 09:57:39 +01:00
parent 9c044c7d1d
commit 8e3f600bd1

View file

@ -24,6 +24,7 @@ fun MessagesReactionsView(
reactionsState: MessagesItemReactionState, reactionsState: MessagesItemReactionState,
modifier: Modifier = Modifier, modifier: Modifier = Modifier,
) { ) {
if(reactionsState.reactions.isEmpty()) return
FlowRow( FlowRow(
modifier = modifier, modifier = modifier,
mainAxisSpacing = 2.dp, mainAxisSpacing = 2.dp,