From 2ada4d5cfe8e7a49bd4a75679a524ce5b82b503b Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Mon, 3 Jul 2017 23:58:34 +0200 Subject: [PATCH] allow users to send PMs in mucs w/o voice --- .../java/eu/siacs/conversations/ui/ConversationFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java index fb434b31c..841519305 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java @@ -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);