Fixes another caching issue when multiple posts include the same poll.

pull/792/head
Vitor Pamplona 2024-03-01 13:41:43 -05:00
rodzic 4f2b2992e0
commit b1a355691a
1 zmienionych plików z 22 dodań i 20 usunięć

Wyświetl plik

@ -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) {