This commit is contained in:
Valere 2021-03-16 09:42:10 +01:00
parent 48fef45ce3
commit e364a36ee6
4 changed files with 3 additions and 13 deletions

View File

@ -92,6 +92,7 @@ interface Room :
limit: Int,
beforeLimit: Int,
afterLimit: Int,
// fun getSpaceParents(): List<SpaceSummary>
includeProfile: Boolean): SearchResult
fun asSpace(): Space?
}

View File

@ -39,10 +39,6 @@ internal open class SpaceParentSummaryEntity(
var viaServers: RealmList<String> = RealmList()
// var child: RoomSummaryEntity? = null,
// var level: Int = 0
) : RealmObject() {
companion object

View File

@ -51,21 +51,14 @@ internal class DefaultSpaceService @Inject constructor(
@SessionDatabase private val monarchy: Monarchy,
@UserId private val userId: String,
private val createSpaceTask: CreateSpaceTask,
// private val joinRoomTask: JoinRoomTask,
private val joinSpaceTask: JoinSpaceTask,
private val spaceGetter: SpaceGetter,
// private val markAllRoomsReadTask: MarkAllRoomsReadTask,
// private val updateBreadcrumbsTask: UpdateBreadcrumbsTask,
// private val roomIdByAliasTask: GetRoomIdByAliasTask,
// private val deleteRoomAliasTask: DeleteRoomAliasTask,
private val roomGetter: RoomGetter,
private val roomSummaryDataSource: RoomSummaryDataSource,
private val stateEventDataSource: StateEventDataSource,
private val peekSpaceTask: PeekSpaceTask,
private val resolveSpaceInfoTask: ResolveSpaceInfoTask,
private val leaveRoomTask: LeaveRoomTask
// private val roomChangeMembershipStateDataSource: RoomChangeMembershipStateDataSource,
// private val taskExecutor: TaskExecutor
) : SpaceService {
override suspend fun createSpace(params: CreateSpaceParams): String {

View File

@ -148,7 +148,7 @@ class PermalinkHandler @Inject constructor(private val activeSessionHolder: Acti
val roomSummary = session.getRoomSummary(roomId)
val membership = roomSummary?.membership
val eventId = permalinkData.eventId
val roomAlias = permalinkData.getRoomAliasOrNull()
// val roomAlias = permalinkData.getRoomAliasOrNull()
val isSpace = roomSummary?.roomType == RoomType.SPACE
return when {
membership == Membership.BAN -> context.toast(R.string.error_opening_banned_room)