2
0
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:
23rd
2022-10-20 17:50:58 +03:00
committed by John Preston
parent f0177bc6cc
commit 6d3f9017fa
5 changed files with 48 additions and 9 deletions

View File

@@ -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.");
}());

View File

@@ -18,6 +18,10 @@ enum class ReportSource {
Bot,
ProfilePhoto,
ProfileVideo,
GroupPhoto,
GroupVideo,
ChannelPhoto,
ChannelVideo,
};
enum class ReportReason {