mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 17:52:17 -05:00
Merge branch 'master' into development
This commit is contained in:
commit
70ebe35ffe
@ -44,8 +44,8 @@ android {
|
|||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 14
|
minSdkVersion 14
|
||||||
targetSdkVersion 21
|
targetSdkVersion 21
|
||||||
versionCode 66
|
versionCode 67
|
||||||
versionName "1.4.0"
|
versionName "1.4.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
|
@ -285,12 +285,11 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
|
|||||||
private Message selectedMessage;
|
private Message selectedMessage;
|
||||||
|
|
||||||
private void sendMessage() {
|
private void sendMessage() {
|
||||||
if (this.conversation == null) {
|
final String body = mEditMessage.getText().toString();
|
||||||
|
if (body.length() == 0 || this.conversation == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Message message = new Message(conversation, mEditMessage.getText()
|
Message message = new Message(conversation, body, conversation.getNextEncryption(activity.forceEncryption()));
|
||||||
.toString(), conversation.getNextEncryption(activity
|
|
||||||
.forceEncryption()));
|
|
||||||
if (conversation.getMode() == Conversation.MODE_MULTI) {
|
if (conversation.getMode() == Conversation.MODE_MULTI) {
|
||||||
if (conversation.getNextCounterpart() != null) {
|
if (conversation.getNextCounterpart() != null) {
|
||||||
message.setCounterpart(conversation.getNextCounterpart());
|
message.setCounterpart(conversation.getNextCounterpart());
|
||||||
|
Loading…
Reference in New Issue
Block a user