Solves a duplicated id in the feed.

This commit is contained in:
Vitor Pamplona 2023-01-30 19:36:39 -03:00
parent 76087e5f25
commit dc47845dd6

View File

@ -23,7 +23,7 @@ class LikeSetCard(val note: Note, val likeEvents: List<Note>): Card() {
return createdAt
}
override fun id() = note.idHex + createdAt
override fun id() = note.idHex + "L" + createdAt
}
class BoostSetCard(val note: Note, val boostEvents: List<Note>): Card() {
@ -33,7 +33,7 @@ class BoostSetCard(val note: Note, val boostEvents: List<Note>): Card() {
return createdAt
}
override fun id() = note.idHex + createdAt
override fun id() = note.idHex + "B" + createdAt
}
sealed class CardFeedState {