Bug fix for when deleting the reaction event reverting to the old like heart.

This commit is contained in:
Vitor Pamplona 2023-06-15 09:37:09 -04:00
parent fe9e85c282
commit 72e474c9ec

View File

@ -511,7 +511,7 @@ fun LikeIcon(baseNote: Note, iconSize: Dp = 20.dp, grayTint: Color, loggedIn: Us
launch(Dispatchers.Default) {
val newReactionType = reactionsState?.note?.isReactedBy(loggedIn)
if (reactionType != newReactionType) {
reactionType = newReactionType?.take(2) ?: "+"
reactionType = newReactionType?.take(2)
}
}
}