Fix minor UI

This commit is contained in:
Mikunj 2019-11-12 08:33:54 +11:00
parent 12639b491f
commit 039df379cc

View File

@ -2213,10 +2213,12 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
setInputPanelEnabled(!isPending); setInputPanelEnabled(!isPending);
// This promise correctly updates the UI for multidevice // This promise correctly updates the UI for multidevice
MultiDeviceUtilities.shouldEnableUserInput(this, recipient).success(shouldEnableInput -> { if (friendRequestStatus != LokiThreadFriendRequestStatus.FRIENDS) {
setInputPanelEnabled(shouldEnableInput); MultiDeviceUtilities.shouldEnableUserInput(this, recipient).success(shouldEnableInput -> {
return Unit.INSTANCE; setInputPanelEnabled(shouldEnableInput);
}); return Unit.INSTANCE;
});
}
} }
private void setInputPanelEnabled(boolean enabled) { private void setInputPanelEnabled(boolean enabled) {