2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Skip premium section in settings.

This commit is contained in:
John Preston
2022-06-07 11:27:06 +04:00
parent 368a1e4231
commit 4570da5767
3 changed files with 6 additions and 7 deletions

View File

@@ -365,8 +365,7 @@ bool ShowReactPremiumError(
not_null<SessionController*> controller,
not_null<HistoryItem*> item,
const QString &emoji) {
if (item->chosenReaction() == emoji
|| controller->session().user()->isPremium()) {
if (item->chosenReaction() == emoji || controller->session().premium()) {
return false;
}
const auto &list = controller->session().data().reactions().list(