diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-05-04 08:34:18 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-05-04 08:34:18 +0900 |
commit | 2d39b1e51e500fa17788630cd0e6a57a451eb475 (patch) | |
tree | e04b67569c7fc4093b1514724b080b5efa313c59 /lib/room.cpp | |
parent | 0378e830c40a1d7302a8108d460940b6cd15201e (diff) | |
download | libquotient-2d39b1e51e500fa17788630cd0e6a57a451eb475.tar.gz libquotient-2d39b1e51e500fa17788630cd0e6a57a451eb475.zip |
Room::allHistoryLoaded
Diffstat (limited to 'lib/room.cpp')
-rw-r--r-- | lib/room.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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<RoomCreateEvent>(*d->timeline.front()); +} + QString Room::name() const { return d->getCurrentState<RoomNameEvent>()->name(); |