[MM-53057] Disallow malformed channel names for DMs (#24404)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
24f5672da8
Коммит
5d3ba7483b
@@ -634,7 +634,7 @@ func TestShouldProcessMessage(t *testing.T) {
|
||||
channelID := "1"
|
||||
api := setupAPI()
|
||||
channel := model.Channel{
|
||||
Name: "user1__" + expectedBotID,
|
||||
Name: model.GetDMNameFromIds("user1", expectedBotID),
|
||||
Type: model.ChannelTypeDirect,
|
||||
}
|
||||
api.On("GetChannel", channelID).Return(&channel, nil)
|
||||
|
||||
Ссылка в новой задаче
Block a user