mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Report in forum menu, remove from topic menu.
This commit is contained in:
@@ -803,8 +803,9 @@ void Filler::addExportChat() {
|
|||||||
void Filler::addReport() {
|
void Filler::addReport() {
|
||||||
const auto chat = _peer->asChat();
|
const auto chat = _peer->asChat();
|
||||||
const auto channel = _peer->asChannel();
|
const auto channel = _peer->asChannel();
|
||||||
if ((!chat || chat->amCreator())
|
if (_topic
|
||||||
&& (!channel || channel->amCreator())) {
|
|| ((!chat || chat->amCreator())
|
||||||
|
&& (!channel || channel->amCreator()))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const auto peer = _peer;
|
const auto peer = _peer;
|
||||||
@@ -1108,6 +1109,7 @@ void Filler::fillChatsListActions() {
|
|||||||
addNewMembers();
|
addNewMembers();
|
||||||
addVideoChat();
|
addVideoChat();
|
||||||
_addAction(PeerMenuCallback::Args{ .isSeparator = true });
|
_addAction(PeerMenuCallback::Args{ .isSeparator = true });
|
||||||
|
addReport();
|
||||||
if (_peer->asChannel()->amIn()) {
|
if (_peer->asChannel()->amIn()) {
|
||||||
addLeaveChat();
|
addLeaveChat();
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user