public void Handle(GiftSentEvent message) { StockItemHeader stockItemHeader = this._stockItemHeader; int? nullable1 = stockItemHeader != null ? new int?(stockItemHeader.ProductId) : new int?(); long? nullable2 = nullable1.HasValue ? new long?(nullable1.GetValueOrDefault()) : new long?(); long num = -message.GiftId; if ((nullable2.GetValueOrDefault() == num ? (!nullable2.HasValue ? 1 : 0) : 1) != 0) { return; } Execute.ExecuteOnUIThread((Action)(() => this.Hide(false))); }
public void Handle(GiftSentEvent message) { if ((long)this.ProductId != -message.GiftId) { return; } List <long> userIds = message.UserIds; if (this.IsChat || userIds == null || !userIds.Contains(this.UserOrChatId)) { return; } this.CanPurchaseFor = false; }