mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Added ability to report chat photo and channel photo.
This commit is contained in:
@@ -44,6 +44,12 @@ void ReportReasonBox(
|
||||
return tr::lng_report_profile_photo_title();
|
||||
case Source::ProfileVideo:
|
||||
return tr::lng_report_profile_video_title();
|
||||
case Source::GroupPhoto: return tr::lng_report_group_photo_title();
|
||||
case Source::GroupVideo: return tr::lng_report_group_video_title();
|
||||
case Source::ChannelPhoto:
|
||||
return tr::lng_report_channel_photo_title();
|
||||
case Source::ChannelVideo:
|
||||
return tr::lng_report_channel_video_title();
|
||||
}
|
||||
Unexpected("'source' in ReportReasonBox.");
|
||||
}());
|
||||
|
@@ -18,6 +18,10 @@ enum class ReportSource {
|
||||
Bot,
|
||||
ProfilePhoto,
|
||||
ProfileVideo,
|
||||
GroupPhoto,
|
||||
GroupVideo,
|
||||
ChannelPhoto,
|
||||
ChannelVideo,
|
||||
};
|
||||
|
||||
enum class ReportReason {
|
||||
|
Reference in New Issue
Block a user