diff --git a/app/src/main/kotlin/io/flamenet/messenger/app/MessengerViewModel.kt b/app/src/main/kotlin/io/flamenet/messenger/app/MessengerViewModel.kt index 904a687..3e3d8fa 100644 --- a/app/src/main/kotlin/io/flamenet/messenger/app/MessengerViewModel.kt +++ b/app/src/main/kotlin/io/flamenet/messenger/app/MessengerViewModel.kt @@ -894,6 +894,13 @@ class MessengerViewModel( current.history(thread), group = group, pinnedMessageId = current.pinnedMessage(thread), + // Read here, not left to the next poll tick. A poll + // waiting on your vote is the reason you opened the + // group, and it was blank for the first few seconds. + polls = + current.conversations.polls + .pollsIn(group.id) + .sortedBy { p -> p.id }, ), unread = it.unread - thread, )