[MM-53057] Disallow malformed channel names for DMs (#24404)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
24f5672da8
Коммит
5d3ba7483b
@@ -339,6 +339,9 @@ func (o *Channel) GetOtherUserIdForDM(userId string) string {
|
||||
}
|
||||
|
||||
userIds := strings.Split(o.Name, "__")
|
||||
if len(userIds) != 2 {
|
||||
return ""
|
||||
}
|
||||
|
||||
var otherUserId string
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user