Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Родитель
e586a38291
Коммит
95ef492454
|
@ -197,7 +197,9 @@ public class ChatController extends BaseController implements MessagesListAdapte
|
|||
credentials = ApiUtils.getCredentials(conversationUser.getUserId(), conversationUser.getToken());
|
||||
}
|
||||
|
||||
this.startCallFromNotification = args.getBoolean(BundleKeys.KEY_FROM_NOTIFICATION_START_CALL);
|
||||
if (args.containsKey(BundleKeys.KEY_FROM_NOTIFICATION_START_CALL)) {
|
||||
this.startCallFromNotification = args.getBoolean(BundleKeys.KEY_FROM_NOTIFICATION_START_CALL);
|
||||
}
|
||||
this.voiceOnly = args.getBoolean(BundleKeys.KEY_CALL_VOICE_ONLY, false);
|
||||
}
|
||||
|
||||
|
@ -382,7 +384,7 @@ public class ChatController extends BaseController implements MessagesListAdapte
|
|||
messageInputView.getButton().setContentDescription(getResources()
|
||||
.getString(R.string.nc_description_send_message_button));
|
||||
|
||||
if (adapterWasNull && startCallFromNotification == null) {
|
||||
if (adapterWasNull && TextUtils.isEmpty(conversationName) && startCallFromNotification == null) {
|
||||
getRoomInfo();
|
||||
} else {
|
||||
handleFromNotification();
|
||||
|
|
|
@ -522,7 +522,11 @@ public class OperationsMenuController extends BaseController {
|
|||
});
|
||||
}
|
||||
} else {
|
||||
showResultImage(true, false);
|
||||
if (!currentUser.hasSpreedCapabilityWithName("chat-v2")) {
|
||||
showResultImage(true, false);
|
||||
} else {
|
||||
initiateConversation(true, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче