e.onComplete(); }).concatWith(ChatSDK.core().pushUser());
disposableList.add(ChatSDK.core().pushUser() .observeOn(AndroidSchedulers.mainThread()) .subscribe(() -> {
if (ChatSDK.profilePictures().fromUser(getUser()).size() == 1) { disposableList.add(ChatSDK.core().pushUser() .observeOn(AndroidSchedulers.mainThread()) .subscribe(() -> {
showOrUpdateProgressDialog(getString(R.string.updating_pictures)); ChatSDK.profilePictures().setDefaultPicture(user, url); disposableList.add(ChatSDK.core().pushUser().subscribe(() -> { dismissProgressDialog(); updateGallery(); showOrUpdateProgressDialog(getString(R.string.deleting_picture)); ChatSDK.profilePictures().removePicture(user, url); disposableList.add(ChatSDK.core().pushUser().subscribe(() -> { dismissProgressDialog(); updateGallery();