예제 #1
0
        public void Handle(TLUpdateChatParticipantAdmin updateChatParticipantAdmin)
        {
            if (_currentChat.Index != updateChatParticipantAdmin.ChatId.Value)
            {
                return;
            }

            Execute.BeginOnUIThread(() =>
            {
                foreach (var item in Items)
                {
                    if (item.Index == updateChatParticipantAdmin.UserId.Value)
                    {
                        item.IsSelected = updateChatParticipantAdmin.IsAdmin.Value;
                        break;
                    }
                }
            });
        }
예제 #2
0
 public void Handle(TLUpdateChatParticipantAdmin updateChatParticipantAdmin)
 {
     NotifyOfPropertyChange(() => CanEditChat);
 }