Update invites in the UI after sync
This commit is contained in:
parent
c0e355f485
commit
1642f3cf40
6 changed files with 44 additions and 1 deletions
|
|
@ -137,6 +137,7 @@ public:
|
|||
std::vector<std::string> joinedRooms();
|
||||
|
||||
QMap<QString, RoomInfo> roomInfo(bool withInvites = true);
|
||||
std::map<QString, bool> invites();
|
||||
|
||||
//! Calculate & return the name of the room.
|
||||
QString getRoomName(lmdb::txn &txn, lmdb::dbi &statesdb, lmdb::dbi &membersdb);
|
||||
|
|
|
|||
|
|
@ -129,6 +129,8 @@ public:
|
|||
roomType_ = RoomType::Joined;
|
||||
}
|
||||
|
||||
bool isInvite() { return roomType_ == RoomType::Invited; }
|
||||
|
||||
signals:
|
||||
void clicked(const QString &room_id);
|
||||
void leaveRoom(const QString &room_id);
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ public:
|
|||
void setFilterRooms(bool filterRooms);
|
||||
void setRoomFilter(std::vector<QString> room_ids);
|
||||
void updateRoom(const QString &room_id, const RoomInfo &info);
|
||||
void cleanupInvites(const std::map<QString, bool> &invites);
|
||||
|
||||
signals:
|
||||
void roomChanged(const QString &room_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue