Browse Source

Fix regression due to icon now supports RTL.

pull/3676/head
Benoit Marty 4 days ago committed by Benoit Marty
parent
commit
a7328c705c
  1. 12
      features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/TimelineItemReactionsView.kt

12
features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/TimelineItemReactionsView.kt

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

Loading…
Cancel
Save