mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 15:45:11 +00:00
Possible fix for the join room screen not updating (#3690)
* possible fix * comment improved * better fix
This commit is contained in:
@@ -209,7 +209,7 @@ class JoinRoomScreenViewModel: JoinRoomScreenViewModelType, JoinRoomScreenViewMo
|
|||||||
message: state.bindings.knockMessage.isBlank ? nil : state.bindings.knockMessage) {
|
message: state.bindings.knockMessage.isBlank ? nil : state.bindings.knockMessage) {
|
||||||
case .success:
|
case .success:
|
||||||
// The room should become knocked through the sync
|
// The room should become knocked through the sync
|
||||||
await updateRoom()
|
await loadRoomDetails()
|
||||||
case .failure(let error):
|
case .failure(let error):
|
||||||
MXLog.error("Failed knocking room alias: \(alias) with error: \(error)")
|
MXLog.error("Failed knocking room alias: \(alias) with error: \(error)")
|
||||||
userIndicatorController.submitIndicator(.init(title: L10n.errorUnknown))
|
userIndicatorController.submitIndicator(.init(title: L10n.errorUnknown))
|
||||||
@@ -220,7 +220,7 @@ class JoinRoomScreenViewModel: JoinRoomScreenViewModelType, JoinRoomScreenViewMo
|
|||||||
message: state.bindings.knockMessage.isBlank ? nil : state.bindings.knockMessage) {
|
message: state.bindings.knockMessage.isBlank ? nil : state.bindings.knockMessage) {
|
||||||
case .success:
|
case .success:
|
||||||
// The room should become knocked through the sync
|
// The room should become knocked through the sync
|
||||||
await updateRoom()
|
await loadRoomDetails()
|
||||||
case .failure(let error):
|
case .failure(let error):
|
||||||
MXLog.error("Failed knocking room id: \(roomID) with error: \(error)")
|
MXLog.error("Failed knocking room id: \(roomID) with error: \(error)")
|
||||||
userIndicatorController.submitIndicator(.init(title: L10n.errorUnknown))
|
userIndicatorController.submitIndicator(.init(title: L10n.errorUnknown))
|
||||||
|
|||||||
Reference in New Issue
Block a user