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 /room.cpp | |
parent | a7f158d1cfdc5c572a62af5a6945e4a6b88e8253 (diff) | |
download | libquotient-53e3ef39af62dc44cfa3984db3cc18b0a5d349b6.tar.gz libquotient-53e3ef39af62dc44cfa3984db3cc18b0a5d349b6.zip |
Room::timelineSize() convenience method
Diffstat (limited to 'room.cpp')
-rw-r--r-- | room.cpp | 5 |
1 files changed, 5 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()); |