Remove Room.clearEventCacheStorage since it's not supported by the SDK anymore

This commit is contained in:
Jorge Martín
2026-06-18 14:10:00 +02:00
committed by Jorge Martin Espinosa
parent f62030ac5b
commit b38b5a924f
9 changed files with 0 additions and 80 deletions
@@ -157,11 +157,6 @@ interface BaseRoom : Closeable {
*/
suspend fun setUnreadFlag(isUnread: Boolean): Result<Unit>
/**
* Clear the event cache storage for the current room.
*/
suspend fun clearEventCacheStorage(): Result<Unit>
/**
* Get the permalink for the room.
*/
@@ -200,12 +200,6 @@ class RustBaseRoom(
}
}
override suspend fun clearEventCacheStorage(): Result<Unit> = withContext(roomDispatcher) {
runCatchingExceptions {
innerRoom.clearEventCacheStorage()
}
}
override suspend fun setIsFavorite(isFavorite: Boolean): Result<Unit> = withContext(roomDispatcher) {
runCatchingExceptions {
innerRoom.setIsFavourite(isFavorite, null)
@@ -186,10 +186,6 @@ class FakeBaseRoom(
membersStateFlow.value = state
}
override suspend fun clearEventCacheStorage(): Result<Unit> {
return Result.success(Unit)
}
override suspend fun reportRoom(reason: String?) = reportRoomResult(reason)
override suspend fun declineCall(notificationEventId: EventId): Result<Unit> {