add refreshing of panel after poll update

This commit is contained in:
2026-03-12 17:24:48 +06:00
parent f06d91e38f
commit 815391d3f6

View File

@@ -128,6 +128,7 @@ object Plugin : Plugin {
(variantsTransformer(it.textSources.makeSourceString()) ?.double ?.times(it.votes)) ?: 0.0
}
ratingsRepo.set(postId, Rating(newRating))
panelApi ?.forceRefresh(postId)
}
suspend fun attachPoll(postId: PostId): Boolean {