PLT-6759 Show deactivated users in GMs (#6703)
* Show deactivated users in GMs * Fix runtime error when DMing deactivated user
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
ac4e9909fa
Коммит
3f1fca9463
@@ -63,7 +63,10 @@ func SendNotifications(post *model.Post, team *model.Team, channel *model.Channe
|
||||
otherUserId = userIds[0]
|
||||
}
|
||||
|
||||
mentionedUserIds[otherUserId] = true
|
||||
if _, ok := profileMap[otherUserId]; ok {
|
||||
mentionedUserIds[otherUserId] = true
|
||||
}
|
||||
|
||||
if post.Props["from_webhook"] == "true" {
|
||||
mentionedUserIds[post.UserId] = true
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user