Skip to content

Commit

Permalink
Fix: compilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nimau committed Apr 27, 2023
1 parent 99227c7 commit 45ca433
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MatrixSDK/Room/Polls/PollAggregator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public class PollAggregator {
private func buildPollStartContent() {
let event = session.store.event(withEventId: pollStartEventId, inRoom: room.roomId)
tryUpdatePollStartedEvent(with: event)
if let pollStartedEvent {
if let pollStartedEvent = pollStartedEvent {
poll = pollBuilder.build(pollStartEventContent: pollStartEventContent,
pollStartEvent: pollStartedEvent,
events: events,
Expand Down Expand Up @@ -156,7 +156,7 @@ public class PollAggregator {
delegate?.pollAggregatorDidStartLoading(self)

session.aggregations.referenceEvents(forEvent: pollStartEventId, inRoom: room.roomId, from: nil, limit: -1) { [weak self] response in
guard let self else {
guard let self = self else {
return
}

Expand Down

0 comments on commit 45ca433

Please sign in to comment.