Add comment to explain the replacementRoom behaviour
This commit is contained in:
parent
e76793781d
commit
824a4bcae5
@ -74,6 +74,7 @@ internal class DefaultCreateRoomFromLocalRoomTask @Inject constructor(
|
|||||||
get() = monarchy.realmConfiguration
|
get() = monarchy.realmConfiguration
|
||||||
|
|
||||||
override suspend fun execute(params: CreateRoomFromLocalRoomTask.Params): String {
|
override suspend fun execute(params: CreateRoomFromLocalRoomTask.Params): String {
|
||||||
|
// If a room has already been created for the given local room, return the existing roomId
|
||||||
val replacementRoomId = stateEventDataSource.getStateEvent(params.localRoomId, EventType.STATE_ROOM_TOMBSTONE, QueryStringValue.IsEmpty)
|
val replacementRoomId = stateEventDataSource.getStateEvent(params.localRoomId, EventType.STATE_ROOM_TOMBSTONE, QueryStringValue.IsEmpty)
|
||||||
?.content.toModel<RoomTombstoneContent>()
|
?.content.toModel<RoomTombstoneContent>()
|
||||||
?.replacementRoomId
|
?.replacementRoomId
|
||||||
|
Loading…
Reference in New Issue
Block a user