Add addedUser IDs to render correctly in client based on teammate name display setting (#8400)
See PLT-7776 on mattermost-webapp: https://github.com/mattermost/mattermost-webapp/pull/353
Этот коммит содержится в:
коммит произвёл
Saturnino Abril
родитель
309594cedf
Коммит
09713ff4ea
@@ -1092,7 +1092,9 @@ func (a *App) PostAddToChannelMessage(user *model.User, addedUser *model.User, c
|
||||
UserId: user.Id,
|
||||
RootId: postRootId,
|
||||
Props: model.StringInterface{
|
||||
"userId": user.Id,
|
||||
"username": user.Username,
|
||||
"addedUserId": addedUser.Id,
|
||||
"addedUsername": addedUser.Username,
|
||||
},
|
||||
}
|
||||
@@ -1112,7 +1114,9 @@ func (a *App) postAddToTeamMessage(user *model.User, addedUser *model.User, chan
|
||||
UserId: user.Id,
|
||||
RootId: postRootId,
|
||||
Props: model.StringInterface{
|
||||
"userId": user.Id,
|
||||
"username": user.Username,
|
||||
"addedUserId": addedUser.Id,
|
||||
"addedUsername": addedUser.Username,
|
||||
},
|
||||
}
|
||||
@@ -1131,6 +1135,7 @@ func (a *App) postRemoveFromChannelMessage(removerUserId string, removedUser *mo
|
||||
Type: model.POST_REMOVE_FROM_CHANNEL,
|
||||
UserId: removerUserId,
|
||||
Props: model.StringInterface{
|
||||
"removedUserId": removedUser.Id,
|
||||
"removedUsername": removedUser.Username,
|
||||
},
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user