mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 12:39:58 +01:00
Fix call sometimes not working
This commit is contained in:
parent
85769f5d06
commit
61de45464b
@ -260,7 +260,6 @@ public class CallController extends BaseController {
|
|||||||
conversationUser = userUtils.getCurrentUser();
|
conversationUser = userUtils.getCurrentUser();
|
||||||
}
|
}
|
||||||
|
|
||||||
callSession = args.getString(BundleKeys.KEY_CALL_SESSION, "0");
|
|
||||||
credentials = ApiUtils.getCredentials(conversationUser.getUsername(), conversationUser.getToken());
|
credentials = ApiUtils.getCredentials(conversationUser.getUsername(), conversationUser.getToken());
|
||||||
isVoiceOnlyCall = args.getBoolean(BundleKeys.KEY_CALL_VOICE_ONLY, false);
|
isVoiceOnlyCall = args.getBoolean(BundleKeys.KEY_CALL_VOICE_ONLY, false);
|
||||||
|
|
||||||
@ -1025,7 +1024,6 @@ public class CallController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void joinRoomAndCall() {
|
private void joinRoomAndCall() {
|
||||||
if ("0".equals(callSession)) {
|
|
||||||
ncApi.joinRoom(credentials, ApiUtils.getUrlForSettingMyselfAsActiveParticipant(baseUrl, roomToken), null)
|
ncApi.joinRoom(credentials, ApiUtils.getUrlForSettingMyselfAsActiveParticipant(baseUrl, roomToken), null)
|
||||||
.subscribeOn(Schedulers.newThread())
|
.subscribeOn(Schedulers.newThread())
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
@ -1052,9 +1050,6 @@ public class CallController extends BaseController {
|
|||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
callOrJoinRoomViaWebSocket();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void callOrJoinRoomViaWebSocket() {
|
private void callOrJoinRoomViaWebSocket() {
|
||||||
|
@ -1002,7 +1002,6 @@ public class ChatController extends BaseController implements MessagesListAdapte
|
|||||||
bundle.putString(BundleKeys.KEY_ROOM_ID, roomId);
|
bundle.putString(BundleKeys.KEY_ROOM_ID, roomId);
|
||||||
bundle.putParcelable(BundleKeys.KEY_USER_ENTITY, Parcels.wrap(conversationUser));
|
bundle.putParcelable(BundleKeys.KEY_USER_ENTITY, Parcels.wrap(conversationUser));
|
||||||
bundle.putString(BundleKeys.KEY_CONVERSATION_PASSWORD, roomPassword);
|
bundle.putString(BundleKeys.KEY_CONVERSATION_PASSWORD, roomPassword);
|
||||||
bundle.putString(BundleKeys.KEY_CALL_SESSION, currentCall.getSessionId());
|
|
||||||
bundle.putString(BundleKeys.KEY_MODIFIED_BASE_URL, baseUrl);
|
bundle.putString(BundleKeys.KEY_MODIFIED_BASE_URL, baseUrl);
|
||||||
|
|
||||||
if (isVoiceOnlyCall) {
|
if (isVoiceOnlyCall) {
|
||||||
|
@ -33,7 +33,6 @@ public class BundleKeys {
|
|||||||
public static final String KEY_APP_ITEM_PACKAGE_NAME = "KEY_APP_ITEM_PACKAGE_NAME";
|
public static final String KEY_APP_ITEM_PACKAGE_NAME = "KEY_APP_ITEM_PACKAGE_NAME";
|
||||||
public static final String KEY_APP_ITEM_NAME = "KEY_APP_ITEM_NAME";
|
public static final String KEY_APP_ITEM_NAME = "KEY_APP_ITEM_NAME";
|
||||||
public static final String KEY_CONVERSATION_PASSWORD = "KEY_CONVERSATION_PASSWORD";
|
public static final String KEY_CONVERSATION_PASSWORD = "KEY_CONVERSATION_PASSWORD";
|
||||||
public static final String KEY_CALL_SESSION = "KEY_CONVERSATION_SESSION";
|
|
||||||
public static final String KEY_ROOM_TOKEN = "KEY_ROOM_TOKEN";
|
public static final String KEY_ROOM_TOKEN = "KEY_ROOM_TOKEN";
|
||||||
public static final String KEY_USER_ENTITY = "KEY_USER_ENTITY";
|
public static final String KEY_USER_ENTITY = "KEY_USER_ENTITY";
|
||||||
public static final String KEY_NEW_CONVERSATION = "KEY_NEW_CONVERSATION";
|
public static final String KEY_NEW_CONVERSATION = "KEY_NEW_CONVERSATION";
|
||||||
|
Loading…
Reference in New Issue
Block a user