mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Add separator between DMs on your team and not (#2910)
This commit is contained in:
@@ -152,6 +152,10 @@ func CreateDirectChannel(userId string, otherUserId string) (*model.Channel, *mo
|
||||
return nil, result.Err
|
||||
}
|
||||
} else {
|
||||
message := model.NewMessage("", channel.Id, userId, model.ACTION_DIRECT_ADDED)
|
||||
message.Add("teammate_id", otherUserId)
|
||||
PublishAndForget(message)
|
||||
|
||||
return result.Data.(*model.Channel), nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user