mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
feat: filter inline bot messages from blocked bots
This commit is contained in:
@@ -33,6 +33,11 @@ bool filterBlocked(const not_null<HistoryItem*> item) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if (const auto bot = item->viaBot()) {
|
||||
if (isBlocked(bot)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user