A poll shows the moment the group opens #166

Merged
paulhitt merged 1 commits from fix/a-poll-shows-when-the-group-opens into main 2026-09-12 16:40:14 +00:00
@@ -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,
)