|
@@ -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 -> {
|