mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-13 20:18:50 +03:00
fix open dm opening the wrong thing sometimes
This commit is contained in:
@@ -570,7 +570,7 @@ std::optional<Snowflake> DiscordClient::FindDM(Snowflake user_id) {
|
||||
for (const auto &id : channels) {
|
||||
const auto channel = m_store.GetChannel(id);
|
||||
const auto recipients = channel->GetDMRecipients();
|
||||
if (recipients.size() == 1 && recipients[0].ID == user_id)
|
||||
if (channel->Type == ChannelType::DM && recipients.size() == 1 && recipients[0].ID == user_id)
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user