Example #1
0
        public void Handle(InvokeDeleteContacts message)
        {
            var id = new TLVector <TLInputUserBase>(CacheService.GetContacts().Where(x => x.IsContact).Select(x => x.ToInputUser()).ToList());

            MTProtoService.DeleteContactsAsync(id,
                                               result => Execute.BeginOnUIThread(() =>
            {
                Handle(Commands.LogOutCommand);
                Handle(new InvokeImportContacts());
            }),
                                               error => Execute.BeginOnUIThread(() =>
            {
            }));
        }