MM-11700 Clean up handling of user display names for notifications (#9343)
* MM-11700 Clean up handling of user display names for notifications
Этот коммит содержится в:
коммит произвёл
Sudheer
родитель
ab99f0656f
Коммит
6c2a5555b8
@@ -514,7 +514,7 @@ func (a *App) ImportUser(data *UserImportData, dryRun bool) *model.AppError {
|
||||
preferences = append(preferences, model.Preference{
|
||||
UserId: savedUser.Id,
|
||||
Category: model.PREFERENCE_CATEGORY_DISPLAY_SETTINGS,
|
||||
Name: "use_military_time",
|
||||
Name: model.PREFERENCE_NAME_USE_MILITARY_TIME,
|
||||
Value: *data.UseMilitaryTime,
|
||||
})
|
||||
}
|
||||
@@ -523,7 +523,7 @@ func (a *App) ImportUser(data *UserImportData, dryRun bool) *model.AppError {
|
||||
preferences = append(preferences, model.Preference{
|
||||
UserId: savedUser.Id,
|
||||
Category: model.PREFERENCE_CATEGORY_DISPLAY_SETTINGS,
|
||||
Name: "collapse_previews",
|
||||
Name: model.PREFERENCE_NAME_COLLAPSE_SETTING,
|
||||
Value: *data.CollapsePreviews,
|
||||
})
|
||||
}
|
||||
@@ -532,7 +532,7 @@ func (a *App) ImportUser(data *UserImportData, dryRun bool) *model.AppError {
|
||||
preferences = append(preferences, model.Preference{
|
||||
UserId: savedUser.Id,
|
||||
Category: model.PREFERENCE_CATEGORY_DISPLAY_SETTINGS,
|
||||
Name: "message_display",
|
||||
Name: model.PREFERENCE_NAME_MESSAGE_DISPLAY,
|
||||
Value: *data.MessageDisplay,
|
||||
})
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user