Skip to content

Commit

Permalink
Work around Xcode build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneRal committed Dec 5, 2024
1 parent 6625619 commit cc71cfd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Quotient/room.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2350,10 +2350,11 @@ QFuture<const RoomEvent*> Room::ensureEvent(const QString& eventId, quint16 maxW
// Request a small number of events (or whatever the ongoing request says, if there's any),
// to make sure checkForRequestedEvents() gets executed
getPreviousContent();
return d->eventRequests
.emplace_back(eventId,
QDeadlineTimer{ std::chrono::seconds(maxWaitSeconds), Qt::VeryCoarseTimer })
.promise.future();
EventRequest r{ eventId,
QDeadlineTimer{ std::chrono::seconds(maxWaitSeconds), Qt::VeryCoarseTimer } };
auto future = r.promise.future();
d->eventRequests.push_back(std::move(r));
return future;
}

void Room::Private::checkForRequestedEvents(const rev_iter_t& from, bool allHistoryLoaded)
Expand Down

0 comments on commit cc71cfd

Please sign in to comment.