MM-29400 Mark all current notices as viewed for newly created users (#15840)

* Added clearing of notices for new users

* ci kick
Этот коммит содержится в:
Eli Yukelzon
2020-10-07 17:46:07 +03:00
коммит произвёл GitHub
родитель 25fd59a435
Коммит f2e5e1562d
4 изменённых файлов: 40 добавлений и 3 удалений

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

@@ -314,6 +314,7 @@ func (a *App) createUser(user *model.User) (*model.User, *model.AppError) {
mlog.Error("Encountered error saving tutorial preference", mlog.Err(err))
}
go a.UpdateViewedProductNoticesForNewUser(ruser.Id)
ruser.Sanitize(map[string]bool{})
return ruser, nil
}