Этот коммит содержится в:
Claudio Costa
2021-07-27 19:43:59 +02:00
коммит произвёл GitHub
родитель 75d6480393
Коммит baf8eda699

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

@@ -1435,7 +1435,8 @@ func (a *App) addUserToChannel(user *model.User, channel *model.Channel) (*model
newMember, nErr = a.Srv().Store.Channel().SaveMember(newMember)
if nErr != nil {
return nil, model.NewAppError("AddUserToChannel", "api.channel.add_user.to.channel.failed.app_error", nil, fmt.Sprintf("failed to add member: user_id: %s, channel_id:%s", user.Id, channel.Id), http.StatusInternalServerError)
return nil, model.NewAppError("AddUserToChannel", "api.channel.add_user.to.channel.failed.app_error", nil,
fmt.Sprintf("failed to add member: %v, user_id: %s, channel_id: %s", nErr, user.Id, channel.Id), http.StatusInternalServerError)
}
if nErr := a.Srv().Store.ChannelMemberHistory().LogJoinEvent(user.Id, channel.Id, model.GetMillis()); nErr != nil {