mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-23 05:25:31 +03:00
Fix more java calls
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
f32b25c455
commit
115154331d
1 changed files with 9 additions and 1 deletions
|
@ -418,7 +418,15 @@ public class ConversationsListController extends BaseController implements Searc
|
|||
|
||||
callItems = new ArrayList<>();
|
||||
|
||||
roomsQueryDisposable = ncApi.getRooms(credentials, ApiUtils.getUrlForGetRooms(currentUser.getBaseUrl()))
|
||||
Integer apiVersion = ApiUtils.getApiVersion(currentUser, "conversation", new int[] {4, 1});
|
||||
if (apiVersion == null) {
|
||||
Log.e(TAG, "No supported API version found", new Exception("No supported API version found"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
roomsQueryDisposable = ncApi.getRooms(credentials, ApiUtils.getUrlForRooms(apiVersion,
|
||||
currentUser.getBaseUrl()))
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(roomsOverall -> {
|
||||
|
|
Loading…
Reference in a new issue