mirror of
https://github.com/uowuo/abaddon.git
synced 2024-11-10 14:10:10 +00:00
handle channel delete for dms
This commit is contained in:
parent
8e972e1334
commit
14138ca568
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user