Remove safe call
This commit is contained in:
parent
3905e564bd
commit
725537d8fe
|
@ -76,7 +76,7 @@ internal class DefaultCreateRoomFromLocalRoomTask @Inject constructor(
|
|||
|
||||
override suspend fun execute(params: CreateRoomFromLocalRoomTask.Params): String {
|
||||
val replacementRoomId = stateEventDataSource.getStateEvent(params.localRoomId, EventType.STATE_ROOM_TOMBSTONE, QueryStringValue.IsEmpty)
|
||||
?.content?.toModel<RoomTombstoneContent>()
|
||||
?.content.toModel<RoomTombstoneContent>()
|
||||
?.replacementRoomId
|
||||
|
||||
if (replacementRoomId != null) {
|
||||
|
|
Loading…
Reference in New Issue