mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Disallow "Disable Sharing" for service users.
This commit is contained in:
@@ -1434,7 +1434,11 @@ void ShowDisableSharingBox(
|
||||
|
||||
void Filler::addToggleNoForwards() {
|
||||
const auto user = _peer->asUser();
|
||||
if (!user || user->isInaccessible() || user->isBot() || user->isSelf()) {
|
||||
if (!user
|
||||
|| user->isInaccessible()
|
||||
|| user->isBot()
|
||||
|| user->isServiceUser()
|
||||
|| user->isSelf()) {
|
||||
return;
|
||||
}
|
||||
const auto controller = _controller;
|
||||
|
||||
Reference in New Issue
Block a user