MM-7881 non-case sensitive username notifications off by default (#13851)

Automatic Merge
Этот коммит содержится в:
Ths2-9Y-LqJt6
2020-03-25 09:43:25 -07:00
коммит произвёл GitHub
родитель 0340eb466f
Коммит c4701394d3
3 изменённых файлов: 9 добавлений и 9 удалений

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

@@ -4,7 +4,6 @@
package app
import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
@@ -1218,7 +1217,7 @@ func TestImportImportUser(t *testing.T) {
checkNotifyProp(t, user, model.PUSH_STATUS_NOTIFY_PROP, model.STATUS_ONLINE)
checkNotifyProp(t, user, model.CHANNEL_MENTIONS_NOTIFY_PROP, "true")
checkNotifyProp(t, user, model.COMMENTS_NOTIFY_PROP, model.COMMENTS_NOTIFY_ROOT)
checkNotifyProp(t, user, model.MENTION_KEYS_NOTIFY_PROP, fmt.Sprintf("%s,@%s", username, username))
checkNotifyProp(t, user, model.MENTION_KEYS_NOTIFY_PROP, "")
// Set Notify Props with Mention keys
data.NotifyProps = &UserNotifyPropsImportData{
@@ -1537,7 +1536,8 @@ func TestImportUserDefaultNotifyProps(t *testing.T) {
Username: &username,
Email: ptrStr(model.NewId() + "@example.com"),
NotifyProps: &UserNotifyPropsImportData{
Email: ptrStr("false"),
Email: ptrStr("false"),
MentionKeys: ptrStr(""),
},
}
require.Nil(t, th.App.importUser(&data, false))