mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 15:04:57 +00:00
Don't check my own gifts privacy.
This commit is contained in:
@@ -2702,7 +2702,7 @@ void ShowStarGiftBox(
|
||||
auto was = std::move(entry);
|
||||
entry = Session();
|
||||
if (const auto strong = weak.get()) {
|
||||
if (const auto user = peer->asUser()) {
|
||||
if (const auto user = peer->asUser(); user && !user->isSelf()) {
|
||||
using Type = Api::DisallowedGiftType;
|
||||
const auto disallowedTypes = user->disallowedGiftTypes();
|
||||
const auto premium = (disallowedTypes & Type::Premium)
|
||||
|
||||
Reference in New Issue
Block a user