aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-08-01 10:53:45 +0200
committerChristian Schneppe <christian@pix-art.de>2017-08-01 10:53:45 +0200
commitdbb0cf8ead030a624954d7e07161f71038d008bc (patch)
treee25adc8526f6dfbf1e1130856b99a104528e52c0 /src/main
parent18dfd6556f756951c6f815d003cb2b6825951c9b (diff)
allow users to send PMs in mucs w/o voice
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConversationFragment.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
index 6ee9552e8..7deb54173 100644
--- a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
+++ b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
@@ -365,6 +365,7 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
}
updateChatMsgHint();
updateSendButton();
+ updateEditablity();
}
break;
default:
@@ -857,6 +858,7 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
this.conversation.setNextCounterpart(counterpart);
updateChatMsgHint();
updateSendButton();
+ updateEditablity();
}
private void correctMessage(Message message) {
@@ -1260,7 +1262,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);