remove archived threads from channel list on sync

this probably doesnt do anything but i added it while trying to fix something and it might work sometime i dont know
This commit is contained in:
ouwou
2021-09-03 03:49:25 -04:00
parent 07e30b9acd
commit f3769ca301

View File

@@ -337,6 +337,14 @@ void ChannelList::OnThreadListSync(const ThreadListSyncData &data) {
m_model->erase(iter);
}
}
// delete all archived threads
for (auto thread : data.Threads) {
if (thread.ThreadMetadata->IsArchived) {
if (auto iter = GetIteratorForChannelFromID(thread.ID))
m_model->erase(iter);
}
}
}
void ChannelList::DeleteThreadRow(Snowflake id) {