kopia lustrzana https://github.com/ryukoposting/Signal-Android
Hide add to group in bottom sheet of blocked recipient.
rodzic
d6acd5ef36
commit
537a1fa2ea
|
@ -84,7 +84,7 @@ final class RecipientDialogViewModel extends ViewModel {
|
|||
MutableLiveData<Integer> localGroupCount = new MutableLiveData<>(0);
|
||||
|
||||
canAddToAGroup = LiveDataUtil.combineLatest(recipient, localGroupCount,
|
||||
(r, count) -> count > 0 && r.isRegistered() && !r.isGroup() && !r.isSelf());
|
||||
(r, count) -> count > 0 && r.isRegistered() && !r.isGroup() && !r.isSelf() && !r.isBlocked());
|
||||
|
||||
recipientDialogRepository.getActiveGroupCount(localGroupCount::postValue);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue