Polls Store
object PollsStore
A non-persistent store singleton that handles polls and changes to their votes.
Functions
Link copied to clipboard
Handles a gateway event by also dispatching it to the store thread
Link copied to clipboard
Fetches detailed votes for a poll.
Link copied to clipboard
Gets the stored votes for a message as MessagePollResult form.
Link copied to clipboard
Handles a message delete event, should only be called from StoreStream methods.
Link copied to clipboard
Handles a message create/update event, should only be called from StoreStream methods.
Link copied to clipboard
fun subscribeOnMain(channelId: Long, messageId: Long, onNext: (HashMap<Int, PollsStore.VotesSnapshot>?) -> Unit): Subscription
Subscribes to poll changes, and run the handler on the main UI thread.