mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Fix subobject initialization
This commit is contained in:
parent
ada20253e7
commit
7f3095c9d8
1 changed files with 12 additions and 10 deletions
|
@ -238,7 +238,7 @@ struct temptree
|
|||
void flatten(CommunitiesModel::FlatTree &to, int i = 0) const
|
||||
{
|
||||
for (const auto &[child, subtree] : children) {
|
||||
to.tree.push_back({QString::fromStdString(child), i, false});
|
||||
to.tree.push_back({QString::fromStdString(child), i, {}, false});
|
||||
subtree.flatten(to, i + 1);
|
||||
}
|
||||
}
|
||||
|
@ -275,6 +275,7 @@ CommunitiesModel::initializeSidebar()
|
|||
globalUnreads.notification_count = {};
|
||||
dmUnreads.notification_count = {};
|
||||
|
||||
{
|
||||
auto e = cache::client()->getAccountData(mtx::events::EventType::Direct);
|
||||
if (e) {
|
||||
if (auto event =
|
||||
|
@ -286,6 +287,7 @@ CommunitiesModel::initializeSidebar()
|
|||
directMessages_.push_back(roomId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::set<std::string> ts;
|
||||
|
||||
|
|
Loading…
Reference in a new issue