1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-22 06:37:30 +00:00
This commit is contained in:
Austin Huang 2021-05-30 20:47:44 -04:00
parent 267096ff39
commit a037b68f27
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

@ -21,7 +21,7 @@ class Comment(
return hasLikedComment return hasLikedComment
} }
fun setLiked(liked: Boolean) { fun setLiked(hasLikedComment: Boolean) {
commentLikeCount = if (hasLikedComment) commentLikeCount + 1 else commentLikeCount - 1 commentLikeCount = if (hasLikedComment) commentLikeCount + 1 else commentLikeCount - 1
this.hasLikedComment = hasLikedComment this.hasLikedComment = hasLikedComment
} }