allow users to send PMs in mucs w/o voice

This commit is contained in:
Daniel Gultsch 2017-07-03 23:58:34 +02:00
parent f2409ed95e
commit 2ada4d5cfe
1 changed files with 3 additions and 1 deletions

View File

@ -354,6 +354,7 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
}
updateChatMsgHint();
updateSendButton();
updateEditablity();
}
break;
default:
@ -825,6 +826,7 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
this.conversation.setNextCounterpart(counterpart);
updateChatMsgHint();
updateSendButton();
updateEditablity();
}
private void correctMessage(Message message) {
@ -1228,7 +1230,7 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
}
private void updateEditablity() {
boolean canWrite = this.conversation.getMode() == Conversation.MODE_SINGLE || this.conversation.getMucOptions().participating();
boolean canWrite = this.conversation.getMode() == Conversation.MODE_SINGLE || this.conversation.getMucOptions().participating() || this.conversation.getNextCounterpart() != null;
this.mEditMessage.setFocusable(canWrite);
this.mEditMessage.setFocusableInTouchMode(canWrite);
this.mSendButton.setEnabled(canWrite);