Reactions: don't add if reactions are empty

This commit is contained in:
ganfra
2022-11-10 09:57:39 +01:00
parent 78d60622db
commit 6cf010db44
@@ -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,