Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2019-09-03 09:52:14 +02:00
parent ba868c682d
commit 6bd36e408c
2 changed files with 4 additions and 4 deletions

View File

@ -228,8 +228,8 @@ public class EntryMenuController extends BaseController {
proceedButton.setAlpha(1.0f);
}
textInputLayout.setErrorEnabled(false);
} else if (editText.getText().toString().startsWith("http://") ||
editText.getText().toString().startsWith("https://") &&
} else if ((editText.getText().toString().startsWith("http://") ||
editText.getText().toString().startsWith("https://")) &&
editText.getText().toString().contains("/call/")) {
// operation code 10
if (!proceedButton.isEnabled()) {

View File

@ -171,8 +171,8 @@ public class OperationsMenuController extends BaseController {
currentUser = userUtils.getCurrentUser();
OperationsObserver operationsObserver = new OperationsObserver();
if (!TextUtils.isEmpty(callUrl)) {
conversationToken = callUrl.substring(callUrl.lastIndexOf("/") + 1, callUrl.length());
if (!TextUtils.isEmpty(callUrl) && callUrl.contains("/call")) {
conversationToken = callUrl.substring(callUrl.lastIndexOf("/") + 1);
if (callUrl.contains("/index.php")) {
baseUrl = callUrl.substring(0, callUrl.indexOf("/index.php"));
} else {