diff options
Diffstat (limited to 'components')
-rw-r--r-- | components/channels.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/channels.cpp b/components/channels.cpp index cd5fee9..70b2a3a 100644 --- a/components/channels.cpp +++ b/components/channels.cpp @@ -327,7 +327,10 @@ void ChannelList::UpdateRemoveGuild(Snowflake id) { void ChannelList::UpdateRemoveChannel(Snowflake id) { auto it = m_id_to_row.find(id); - if (it == m_id_to_row.end()) return; + if (it == m_id_to_row.end()) { + it = m_dm_id_to_row.find(id); + if (it == m_dm_id_to_row.end()) return; + } auto row = dynamic_cast<ChannelListRow *>(it->second); if (row == nullptr) return; DeleteRow(row); |