fetchPollResponses method

Future<void> fetchPollResponses(
  1. Timeline timeline
)

Fetches poll response events from the server for fragmented timelines where responses may not be in the current timeline chunk. After fetching, the existing sync getPollResponses method will return the correct data from timeline.aggregatedEvents.

Implementation

Future<void> fetchPollResponses(Timeline timeline) async {
  assert(type == PollEventContent.startType);
  await timeline.fetchAggregatedEvents(
    eventId,
    RelationshipTypes.reference,
  );
}