Don't check my own gifts privacy.

This commit is contained in:
John Preston
2026-01-02 16:56:31 +04:00
parent 05d3c2dc4a
commit d8a3df644b
+1 -1
View File
@@ -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)