mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-04 11:33:27 +03:00
fix error
This commit is contained in:
@@ -349,7 +349,10 @@ void ChannelList::UpdateChannel(Snowflake id) {
|
||||
UpdateChannelCategory(id);
|
||||
return;
|
||||
}
|
||||
auto row = dynamic_cast<ChannelListRowChannel *>(m_id_to_row.at(id));
|
||||
|
||||
auto it = m_id_to_row.find(id);
|
||||
if (it == m_id_to_row.end()) return; // stuff like voice doesnt have a row yet
|
||||
auto row = dynamic_cast<ChannelListRowChannel *>(it->second);
|
||||
const bool old_collapsed = row->IsUserCollapsed;
|
||||
const bool old_visible = row->is_visible();
|
||||
DeleteRow(row);
|
||||
|
||||
Reference in New Issue
Block a user