parent
9f3de8679d
commit
8767ea181d
11 changed files with 127 additions and 18 deletions
|
|
@ -455,3 +455,16 @@ RoomList::firstRoom() const
|
|||
return std::pair<QString, QSharedPointer<RoomInfoListItem>>(firstRoom->first,
|
||||
firstRoom->second);
|
||||
}
|
||||
|
||||
void
|
||||
RoomList::updateReadStatus(const std::map<QString, bool> &status)
|
||||
{
|
||||
for (const auto &room : status) {
|
||||
if (roomExists(room.first)) {
|
||||
auto item = rooms_.at(room.first);
|
||||
|
||||
if (item)
|
||||
item->setReadState(room.second);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue