Fix regression due to icon now supports RTL.

This commit is contained in:
Benoit Marty 2024-10-14 21:02:39 +02:00 committed by Benoit Marty
parent 5ede66afc0
commit 1fd703fa67

View file

@ -96,12 +96,14 @@ private fun TimelineItemReactionsView(
}, },
addMoreButton = if (userCanSendReaction) { addMoreButton = if (userCanSendReaction) {
{ {
CompositionLocalProvider(LocalLayoutDirection provides currentLayout) {
MessagesReactionButton( MessagesReactionButton(
content = MessagesReactionsButtonContent.Icon(CompoundDrawables.ic_compound_reaction_add), content = MessagesReactionsButtonContent.Icon(CompoundDrawables.ic_compound_reaction_add),
onClick = onMoreReactionsClick, onClick = onMoreReactionsClick,
onLongClick = {} onLongClick = {}
) )
} }
}
} else { } else {
null null
}, },