From 725537d8fe1159f690b5beb69a07598c973c54ba Mon Sep 17 00:00:00 2001 From: Florian Renaud Date: Wed, 17 Aug 2022 16:19:33 +0200 Subject: [PATCH] Remove safe call --- .../internal/session/room/create/CreateRoomFromLocalRoomTask.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/create/CreateRoomFromLocalRoomTask.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/create/CreateRoomFromLocalRoomTask.kt index c59c56ffde..f861977dd1 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/create/CreateRoomFromLocalRoomTask.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/create/CreateRoomFromLocalRoomTask.kt @@ -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() + ?.content.toModel() ?.replacementRoomId if (replacementRoomId != null) {