Skip to content

Commit

Permalink
Query tombstone event using IsEmpty instead of NoCondition
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Renaud committed Jun 17, 2022
1 parent 30ffa63 commit 53c73dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ internal class DefaultCreateRoomFromLocalRoomTask @Inject constructor(
get() = monarchy.realmConfiguration

override suspend fun execute(params: CreateRoomFromLocalRoomTask.Params): String {
val replacementRoomId = stateEventDataSource.getStateEvent(params.localRoomId, EventType.STATE_ROOM_TOMBSTONE, QueryStringValue.NoCondition)
val replacementRoomId = stateEventDataSource.getStateEvent(params.localRoomId, EventType.STATE_ROOM_TOMBSTONE, QueryStringValue.IsEmpty)
?.content?.toModel<RoomTombstoneContent>()
?.replacementRoomId

Expand Down

0 comments on commit 53c73dc

Please sign in to comment.