mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-22 21:51:57 +02:00
Solves a duplicated id in the feed.
This commit is contained in:
@@ -23,7 +23,7 @@ class LikeSetCard(val note: Note, val likeEvents: List<Note>): Card() {
|
|||||||
return createdAt
|
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() {
|
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
|
return createdAt
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun id() = note.idHex + createdAt
|
override fun id() = note.idHex + "B" + createdAt
|
||||||
}
|
}
|
||||||
|
|
||||||
sealed class CardFeedState {
|
sealed class CardFeedState {
|
||||||
|
Reference in New Issue
Block a user