2022-12-20 14:46:05 +00:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using osu.Game.Graphics.UserInterfaceV2;
|
|
|
|
using osu.Game.Online.API.Requests.Responses;
|
|
|
|
using osu.Game.Resources.Localisation.Web;
|
|
|
|
|
|
|
|
namespace osu.Game.Overlays.Chat
|
|
|
|
{
|
2022-12-20 16:37:16 +00:00
|
|
|
public partial class ReportChatPopover : ReportPopover<ChatReportReason>
|
2022-12-20 14:46:05 +00:00
|
|
|
{
|
|
|
|
public ReportChatPopover(APIUser? user)
|
2022-12-20 16:37:16 +00:00
|
|
|
: base(ReportStrings.UserTitle(user?.Username ?? @"Someone"))
|
2022-12-20 14:46:05 +00:00
|
|
|
{
|
2023-03-28 12:32:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
protected override bool CheckCanSubmitEmptyComment(ChatReportReason reason)
|
|
|
|
{
|
|
|
|
return reason != ChatReportReason.Other;
|
2022-12-20 14:46:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|