Add a basic 'Space page'
This commit is contained in:
parent
c69d2ef648
commit
884fb74d2d
7 changed files with 83 additions and 3 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue