MM-67279: Fix private channel enumeration via /mute slash command (#35099) (#35149)

Automatic Merge
Этот коммит содержится в:
Mattermost Build
2026-01-30 18:23:33 +02:00
коммит произвёл GitHub
родитель 452bad21e9
Коммит 83006ff8ca
3 изменённых файлов: 4 добавлений и 7 удалений

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

@@ -64,7 +64,7 @@ func (*MuteProvider) DoCommand(a *app.App, c request.CTX, args *model.CommandArg
channelMember, err := a.ToggleMuteChannel(c, channel.Id, args.UserId)
if err != nil {
return &model.CommandResponse{Text: args.T("api.command_mute.not_member.error", map[string]any{"Channel": channelName}), ResponseType: model.CommandResponseTypeEphemeral}
return &model.CommandResponse{Text: args.T("api.command_mute.error", map[string]any{"Channel": channelName}), ResponseType: model.CommandResponseTypeEphemeral}
}
// Direct and Group messages won't have a nice channel title, omit it