forked from jmug/stoatchat
Don't send inactive DMs to user.
This commit is contained in:
@@ -91,7 +91,8 @@ pub fn dms(user: UserRef) -> Response {
|
|||||||
doc! {
|
doc! {
|
||||||
"$or": [
|
"$or": [
|
||||||
{
|
{
|
||||||
"type": channel::ChannelType::DM as i32
|
"type": channel::ChannelType::DM as i32,
|
||||||
|
"active": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": channel::ChannelType::GROUPDM as i32
|
"type": channel::ChannelType::GROUPDM as i32
|
||||||
|
|||||||
Reference in New Issue
Block a user