kopia lustrzana https://github.com/vitorpamplona/amethyst
Fixes another caching issue when multiple posts include the same poll.
rodzic
4f2b2992e0
commit
b1a355691a
|
@ -76,6 +76,7 @@ class PollNoteViewModel : ViewModel() {
|
||||||
acc: Account,
|
acc: Account,
|
||||||
note: Note?,
|
note: Note?,
|
||||||
) {
|
) {
|
||||||
|
if (acc != account || pollNote != note) {
|
||||||
account = acc
|
account = acc
|
||||||
pollNote = note
|
pollNote = note
|
||||||
pollEvent = pollNote?.event as PollNoteEvent
|
pollEvent = pollNote?.event as PollNoteEvent
|
||||||
|
@ -100,6 +101,7 @@ class PollNoteViewModel : ViewModel() {
|
||||||
)
|
)
|
||||||
} ?: emptyList()
|
} ?: emptyList()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fun refreshTallies() {
|
fun refreshTallies() {
|
||||||
viewModelScope.launch(Dispatchers.Default) {
|
viewModelScope.launch(Dispatchers.Default) {
|
||||||
|
|
Ładowanie…
Reference in New Issue