mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-06 20:15:19 +03:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user