Example #1
0
        public void Handle(TLUpdateChannel updateChannel)
        {
            var channel = CurrentItem as TLChannel;

            if (channel != null)
            {
                if (channel.Id.Value == updateChannel.ChannelId.Value)
                {
                    NotifyOfPropertyChange(() => IsChannelAdministrator);
                }
            }
        }
Example #2
0
        public void Handle(TLUpdateChannel update)
        {
            if (With is TLChannel channel && channel.Id == update.ChannelId)
            {
                RaisePropertyChanged(() => With);
                RaisePropertyChanged(() => Full);
                RaisePropertyChanged(() => WithChannel);
                RaisePropertyChanged(() => FullChannel);

                if (channel.HasBannedRights && channel.BannedRights.IsSendMessages)
                {
                    BeginOnUIThread(() => SetText(null));
                }

                if (Full is TLChannelFull channelFull)
                {
                    _stickers.SyncGroup(channelFull);
                }
            }
        }