Clear cached image after room creation
This commit is contained in:
+4
@@ -63,4 +63,8 @@ class CreateRoomDataStore @Inject constructor(
|
||||
fun setPrivacy(privacy: RoomPrivacy?) {
|
||||
createRoomConfigFlow.tryEmit(createRoomConfigFlow.value.copy(privacy = privacy))
|
||||
}
|
||||
|
||||
fun clearCachedData() {
|
||||
cachedAvatarUri = null
|
||||
}
|
||||
}
|
||||
|
||||
+1
@@ -135,6 +135,7 @@ class ConfigureRoomPresenter @Inject constructor(
|
||||
avatar = mxc,
|
||||
)
|
||||
matrixClient.createRoom(params).getOrThrow()
|
||||
.also { dataStore.clearCachedData() }
|
||||
}.execute(createRoomAction)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user