From 08af2cf5cba430a0d0eedd250d61a1631ace27df Mon Sep 17 00:00:00 2001 From: Taras Smakula <tarassmakula@gmail.com> Date: Tue, 14 Nov 2023 12:09:23 +0200 Subject: [PATCH] Room version 11 --- core/src/main/java/org/futo/circles/core/base/Constants.kt | 1 + .../org/futo/circles/core/feature/room/CreateRoomDataSource.kt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/core/src/main/java/org/futo/circles/core/base/Constants.kt b/core/src/main/java/org/futo/circles/core/base/Constants.kt index da27a0b25..dd9a9a10f 100644 --- a/core/src/main/java/org/futo/circles/core/base/Constants.kt +++ b/core/src/main/java/org/futo/circles/core/base/Constants.kt @@ -6,6 +6,7 @@ import org.futo.circles.core.provider.MatrixSessionProvider const val FILE_PROVIDER_AUTHORITY_EXTENSION = ".provider" const val MediaCaptionFieldKey = "caption" const val READ_ONLY_ROLE = -10 +const val DEFAULT_ROOM_VERSION = "11" fun getCirclesDomain(): String { if (BuildConfig.DEBUG) return CirclesAppConfig.usServerDomain diff --git a/core/src/main/java/org/futo/circles/core/feature/room/CreateRoomDataSource.kt b/core/src/main/java/org/futo/circles/core/feature/room/CreateRoomDataSource.kt index 8b1fb857e..230b24ffb 100644 --- a/core/src/main/java/org/futo/circles/core/feature/room/CreateRoomDataSource.kt +++ b/core/src/main/java/org/futo/circles/core/feature/room/CreateRoomDataSource.kt @@ -3,6 +3,7 @@ package org.futo.circles.core.feature.room import android.content.Context import android.net.Uri import dagger.hilt.android.qualifiers.ApplicationContext +import org.futo.circles.core.base.DEFAULT_ROOM_VERSION import org.futo.circles.core.feature.workspace.SharedCircleDataSource import org.futo.circles.core.feature.workspace.SpacesTreeAccountDataSource import org.futo.circles.core.model.Circle @@ -84,6 +85,7 @@ class CreateRoomDataSource @Inject constructor( return params.apply { circlesRoom.type?.let { this.roomType = it } setInviteRules(this, circlesRoom) + roomVersion = DEFAULT_ROOM_VERSION this.name = circlesRoom.nameId?.let { context.getString(it) } ?: name this.topic = topic avatarUri = iconUri -- GitLab