diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-10-30 12:13:14 +0300 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-10-30 12:13:14 +0300 |
commit | 53e3ef39af62dc44cfa3984db3cc18b0a5d349b6 (patch) | |
tree | 5951406ca0605d452596b2d47370dae638f25249 | |
parent | a7f158d1cfdc5c572a62af5a6945e4a6b88e8253 (diff) | |
download | libquotient-53e3ef39af62dc44cfa3984db3cc18b0a5d349b6.tar.gz libquotient-53e3ef39af62dc44cfa3984db3cc18b0a5d349b6.zip |
Room::timelineSize() convenience method
-rw-r--r-- | room.cpp | 5 | ||||
-rw-r--r-- | room.h | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -414,6 +414,11 @@ int Room::memberCount() const return d->membersMap.size(); } +int Room::timelineSize() const +{ + return int(d->timeline.size()); +} + void Room::Private::insertMemberIntoMap(User *u) { auto namesakes = membersMap.values(u->name()); @@ -97,6 +97,7 @@ namespace QMatrixClient Q_INVOKABLE QList<User*> users() const; Q_INVOKABLE QStringList memberNames() const; Q_INVOKABLE int memberCount() const; + Q_INVOKABLE int timelineSize() const; /** * Returns a room avatar and requests it from the network if needed |