MM-11529: Allow to Leave an archived channel from the API (#9204)

* MM-11529: Allow to Leave an archived channel from the API

* Remove the restriction to remove user from archive channel to yourself
Этот коммит содержится в:
Jesús Espino
2018-08-03 10:44:32 +02:00
коммит произвёл GitHub
родитель 7a731d2bd1
Коммит 8cc4f27f7c
4 изменённых файлов: 22 добавлений и 10 удалений

Просмотреть файл

@@ -78,6 +78,11 @@ func TestSendNotifications(t *testing.T) {
if err != nil {
t.Fatal(err)
}
th.BasicChannel.DeleteAt = 1
mentions, err = th.App.SendNotifications(post1, th.BasicTeam, th.BasicChannel, th.BasicUser, nil)
assert.Nil(t, err)
assert.Len(t, mentions, 0)
}
func TestGetExplicitMentions(t *testing.T) {