Add a basic 'Space page'

This commit is contained in:
Nicolas Werner 2021-06-18 16:22:06 +02:00
parent c69d2ef648
commit 884fb74d2d
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
7 changed files with 83 additions and 3 deletions

View file

@ -1772,6 +1772,13 @@ Cache::relatedEvents(const std::string &room_id, const std::string &event_id)
return related_ids;
}
size_t
Cache::memberCount(const std::string &room_id)
{
auto txn = lmdb::txn::begin(env_, nullptr, MDB_RDONLY);
return getMembersDb(txn, room_id).size(txn);
}
QMap<QString, RoomInfo>
Cache::roomInfo(bool withInvites)
{