mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
fix: hide irrelevant items
This commit is contained in:
parent
7cc14bda52
commit
80cadf8f7d
1 changed files with 8 additions and 0 deletions
|
@ -54,6 +54,10 @@ void AddHideMessageAction(not_null<Ui::PopupMenu*> menu, HistoryItem *item) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (item->history()->peer->isSelf()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const auto history = item->history();
|
const auto history = item->history();
|
||||||
menu->addAction(tr::ayu_ContextHideMessage(tr::now),
|
menu->addAction(tr::ayu_ContextHideMessage(tr::now),
|
||||||
[=]()
|
[=]()
|
||||||
|
@ -283,6 +287,10 @@ void AddReadUntilAction(not_null<Ui::PopupMenu*> menu, HistoryItem *item) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (item->history()->peer->isSelf()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const auto settings = &AyuSettings::getInstance();
|
const auto settings = &AyuSettings::getInstance();
|
||||||
if (settings->sendReadMessages) {
|
if (settings->sendReadMessages) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue