Hide add to group in bottom sheet of blocked recipient.

fork-5.53.8
Sgn-32 2022-01-29 15:09:39 +01:00 zatwierdzone przez Cody Henthorne
rodzic d6acd5ef36
commit 537a1fa2ea
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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);
}