mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-26 17:52:29 +01:00
Solves a duplicated id in the feed.
This commit is contained in:
parent
76087e5f25
commit
dc47845dd6
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user