Possible fix for the join room screen not updating (#3690)

* possible fix

* comment improved

* better fix
This commit is contained in:
Mauro 2025-01-21 14:48:43 +01:00 committed by GitHub
parent 8577f53613
commit 19c14d5ef6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -209,7 +209,7 @@ class JoinRoomScreenViewModel: JoinRoomScreenViewModelType, JoinRoomScreenViewMo
message: state.bindings.knockMessage.isBlank ? nil : state.bindings.knockMessage) {
case .success:
// The room should become knocked through the sync
await updateRoom()
await loadRoomDetails()
case .failure(let error):
MXLog.error("Failed knocking room alias: \(alias) with error: \(error)")
userIndicatorController.submitIndicator(.init(title: L10n.errorUnknown))
@ -220,7 +220,7 @@ class JoinRoomScreenViewModel: JoinRoomScreenViewModelType, JoinRoomScreenViewMo
message: state.bindings.knockMessage.isBlank ? nil : state.bindings.knockMessage) {
case .success:
// The room should become knocked through the sync
await updateRoom()
await loadRoomDetails()
case .failure(let error):
MXLog.error("Failed knocking room id: \(roomID) with error: \(error)")
userIndicatorController.submitIndicator(.init(title: L10n.errorUnknown))