Fix compilation warning (exhaustive when)

This commit is contained in:
Benoit Marty 2022-03-22 14:45:01 +01:00 committed by Benoit Marty
parent ed62a2f1c9
commit 7502158ba9
2 changed files with 2 additions and 0 deletions

View File

@ -272,6 +272,7 @@ internal class DefaultQrCodeVerificationTransaction(
// I now know that i can trust my MSK // I now know that i can trust my MSK
trust(true, emptyList(), true) trust(true, emptyList(), true)
} }
null -> Unit
} }
} }

View File

@ -314,6 +314,7 @@ internal class RoomSummaryDataSource @Inject constructor(
RoomCategoryFilter.ONLY_ROOMS -> query.equalTo(RoomSummaryEntityFields.IS_DIRECT, false) RoomCategoryFilter.ONLY_ROOMS -> query.equalTo(RoomSummaryEntityFields.IS_DIRECT, false)
RoomCategoryFilter.ONLY_WITH_NOTIFICATIONS -> query.greaterThan(RoomSummaryEntityFields.NOTIFICATION_COUNT, 0) RoomCategoryFilter.ONLY_WITH_NOTIFICATIONS -> query.greaterThan(RoomSummaryEntityFields.NOTIFICATION_COUNT, 0)
RoomCategoryFilter.ALL -> Unit // nop RoomCategoryFilter.ALL -> Unit // nop
null -> Unit
} }
// Timber.w("VAL: activeSpaceId : ${queryParams.activeSpaceId}") // Timber.w("VAL: activeSpaceId : ${queryParams.activeSpaceId}")