make quick actions available in conferences when file attachment is available
This commit is contained in:
parent
7e11570f2c
commit
82714dedfe
|
@ -912,7 +912,8 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
|
||||||
final SendButtonAction action;
|
final SendButtonAction action;
|
||||||
final int status;
|
final int status;
|
||||||
final boolean empty = this.mEditMessage == null || this.mEditMessage.getText().length() == 0;
|
final boolean empty = this.mEditMessage == null || this.mEditMessage.getText().length() == 0;
|
||||||
if (c.getMode() == Conversation.MODE_MULTI) {
|
final boolean conference = c.getMode() == Conversation.MODE_MULTI;
|
||||||
|
if (conference && !c.getAccount().httpUploadAvailable()) {
|
||||||
if (empty && c.getNextCounterpart() != null) {
|
if (empty && c.getNextCounterpart() != null) {
|
||||||
action = SendButtonAction.CANCEL;
|
action = SendButtonAction.CANCEL;
|
||||||
} else {
|
} else {
|
||||||
|
@ -920,6 +921,9 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (empty) {
|
if (empty) {
|
||||||
|
if (conference && c.getNextCounterpart() != null) {
|
||||||
|
action = SendButtonAction.CANCEL;
|
||||||
|
} else {
|
||||||
String setting = activity.getPreferences().getString("quick_action", "recent");
|
String setting = activity.getPreferences().getString("quick_action", "recent");
|
||||||
if (!setting.equals("none") && UIHelper.receivedLocationQuestion(conversation.getLatestMessage())) {
|
if (!setting.equals("none") && UIHelper.receivedLocationQuestion(conversation.getLatestMessage())) {
|
||||||
setting = "location";
|
setting = "location";
|
||||||
|
@ -943,6 +947,7 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
|
||||||
action = SendButtonAction.TEXT;
|
action = SendButtonAction.TEXT;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
action = SendButtonAction.TEXT;
|
action = SendButtonAction.TEXT;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue