mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Report in forum menu, remove from topic menu.
This commit is contained in:
parent
88b555e907
commit
fe9cf7ddad
1 changed files with 4 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue