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,
|
||||
note: Note?,
|
||||
) {
|
||||
if (acc != account || pollNote != note) {
|
||||
account = acc
|
||||
pollNote = note
|
||||
pollEvent = pollNote?.event as PollNoteEvent
|
||||
|
@ -100,6 +101,7 @@ class PollNoteViewModel : ViewModel() {
|
|||
)
|
||||
} ?: emptyList()
|
||||
}
|
||||
}
|
||||
|
||||
fun refreshTallies() {
|
||||
viewModelScope.launch(Dispatchers.Default) {
|
||||
|
|
Ładowanie…
Reference in New Issue