2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 07:05:13 +00:00

Add ability to completely delete legacy group.

This commit is contained in:
John Preston
2021-01-21 08:20:29 +04:00
parent 19455d44db
commit 1774b21e88
4 changed files with 14 additions and 5 deletions

View File

@@ -825,6 +825,8 @@ bool PeerData::canRevokeFullHistory() const {
&& (!user->isBot() || user->isSupport())
&& session().serverConfig().revokePrivateInbox
&& (session().serverConfig().revokePrivateTimeLimit == 0x7FFFFFFF);
} else if (const auto chat = asChat()) {
return chat->amCreator();
}
return false;
}