mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02: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