From 2d39b1e51e500fa17788630cd0e6a57a451eb475 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sat, 4 May 2019 08:34:18 +0900 Subject: Room::allHistoryLoaded --- lib/room.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/room.cpp') diff --git a/lib/room.cpp b/lib/room.cpp index e363767a..2ce37acc 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -370,6 +370,11 @@ const Room::PendingEvents& Room::pendingEvents() const return d->unsyncedEvents; } +bool Room::allHistoryLoaded() const +{ + return !d->timeline.empty() && is(*d->timeline.front()); +} + QString Room::name() const { return d->getCurrentState()->name(); -- cgit v1.2.3