mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-27 19:22:15 -05:00
allow users to send PMs in mucs w/o voice
This commit is contained in:
parent
f2409ed95e
commit
2ada4d5cfe
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user