mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2024-09-29 16:30:49 +00: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…
Reference in New Issue
Block a user