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

This commit is contained in:
Vitor Pamplona
2024-03-01 13:41:43 -05:00
parent 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) {