Skip to content

Commit

Permalink
Merge pull request #4162 from nextcloud/bugfix/4078/fixSelfReactionWh…
Browse files Browse the repository at this point in the history
…enReEnteringChat

Bugfix/4078/fix self reaction when re entering chat
  • Loading branch information
mahibi authored Sep 6, 2024
2 parents 129ba94 + a0a388c commit 06f5c0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ class ArrayListConverter {
return null
}

return LoganSquare.parseList(value, List::class.java) as ArrayList<String>?
return LoganSquare.parseList(value, String::class.java) as ArrayList<String>?
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -164,18 +164,18 @@ class TalkSpecificViewThemeUtils @Inject constructor(
}
}

fun setCheckedBackground(linearLayout: LinearLayout, incoming: Boolean) {
fun setCheckedBackground(linearLayout: LinearLayout, outgoing: Boolean) {
withScheme(linearLayout) { scheme ->
val drawable = AppCompatResources
.getDrawable(linearLayout.context, R.drawable.reaction_self_background)!!
.mutate()
val backgroundColor = if (incoming) {
dynamicColor.primaryContainer().getArgb(scheme)
} else {
val backgroundColor = if (outgoing) {
ContextCompat.getColor(
linearLayout.context,
R.color.bg_message_list_incoming_bubble
)
} else {
dynamicColor.primaryContainer().getArgb(scheme)
}
DrawableCompat.setTintList(
drawable,
Expand Down

0 comments on commit 06f5c0b

Please sign in to comment.