Report in forum menu, remove from topic menu.

This commit is contained in:
John Preston 2022-12-05 09:03:31 +04:00
parent 88b555e907
commit fe9cf7ddad
1 changed files with 4 additions and 2 deletions

View File

@ -803,8 +803,9 @@ void Filler::addExportChat() {
void Filler::addReport() {
const auto chat = _peer->asChat();
const auto channel = _peer->asChannel();
if ((!chat || chat->amCreator())
&& (!channel || channel->amCreator())) {
if (_topic
|| ((!chat || chat->amCreator())
&& (!channel || channel->amCreator()))) {
return;
}
const auto peer = _peer;
@ -1108,6 +1109,7 @@ void Filler::fillChatsListActions() {
addNewMembers();
addVideoChat();
_addAction(PeerMenuCallback::Args{ .isSeparator = true });
addReport();
if (_peer->asChannel()->amIn()) {
addLeaveChat();
} else {