Don't send inactive DMs to user.

This commit is contained in:
Paul Makles
2020-06-27 09:16:54 +01:00
parent fc03dd2cdb
commit b687190105

View File

@@ -91,7 +91,8 @@ pub fn dms(user: UserRef) -> Response {
doc! {
"$or": [
{
"type": channel::ChannelType::DM as i32
"type": channel::ChannelType::DM as i32,
"active": 1
},
{
"type": channel::ChannelType::GROUPDM as i32