From 988a5dc48d3a0b37dfe6f85d2c7bab33f278ddd9 Mon Sep 17 00:00:00 2001 From: Element CI Date: Mon, 3 Feb 2025 15:57:48 +0100 Subject: [PATCH] added a small delay in the loading --- .../RoomMemberDetailsScreenViewModel.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ElementX/Sources/Screens/RoomMemberDetailsScreen/RoomMemberDetailsScreenViewModel.swift b/ElementX/Sources/Screens/RoomMemberDetailsScreen/RoomMemberDetailsScreenViewModel.swift index 9deae1aa75..68d85c2e4c 100644 --- a/ElementX/Sources/Screens/RoomMemberDetailsScreen/RoomMemberDetailsScreenViewModel.swift +++ b/ElementX/Sources/Screens/RoomMemberDetailsScreen/RoomMemberDetailsScreenViewModel.swift @@ -178,7 +178,8 @@ class RoomMemberDetailsScreenViewModel: RoomMemberDetailsScreenViewModelType, Ro userIndicatorController.submitIndicator(UserIndicator(id: loadingIndicatorIdentifier, type: .modal(progress: .indeterminate, interactiveDismissDisabled: true, allowsInteraction: false), title: L10n.commonLoading, - persistent: true)) + persistent: true), + delay: .milliseconds(200)) defer { userIndicatorController.retractIndicatorWithId(loadingIndicatorIdentifier) } switch await clientProxy.directRoomForUserID(roomMemberProxy.userID) { @@ -205,7 +206,8 @@ class RoomMemberDetailsScreenViewModel: RoomMemberDetailsScreenViewModelType, Ro userIndicatorController.submitIndicator(UserIndicator(id: loadingIndicatorIdentifier, type: .modal(progress: .indeterminate, interactiveDismissDisabled: true, allowsInteraction: false), title: L10n.commonLoading, - persistent: true)) + persistent: true), + delay: .milliseconds(200)) defer { userIndicatorController.retractIndicatorWithId(loadingIndicatorIdentifier) } switch await clientProxy.createDirectRoom(with: roomMemberProxy.userID, expectedRoomName: roomMemberProxy.displayName) {