mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 21:27:07 +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;
|
||||
}
|
||||
|
||||
if (item->history()->peer->isSelf()) {
|
||||
return;
|
||||
}
|
||||
|
||||
const auto history = item->history();
|
||||
menu->addAction(tr::ayu_ContextHideMessage(tr::now),
|
||||
[=]()
|
||||
|
@ -283,6 +287,10 @@ void AddReadUntilAction(not_null<Ui::PopupMenu*> menu, HistoryItem *item) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (item->history()->peer->isSelf()) {
|
||||
return;
|
||||
}
|
||||
|
||||
const auto settings = &AyuSettings::getInstance();
|
||||
if (settings->sendReadMessages) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue