From 1a7df320d10d96e7273afc2d785f41cfaf135c33 Mon Sep 17 00:00:00 2001 From: shinhong_park Date: Sat, 12 Oct 2024 16:42:18 +0900 Subject: [PATCH] Wait 500ms before sending request token --- SNUTT-2022/SNUTT/ViewModels/FriendsViewModel.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/SNUTT-2022/SNUTT/ViewModels/FriendsViewModel.swift b/SNUTT-2022/SNUTT/ViewModels/FriendsViewModel.swift index ad634c3b..25643299 100644 --- a/SNUTT-2022/SNUTT/ViewModels/FriendsViewModel.swift +++ b/SNUTT-2022/SNUTT/ViewModels/FriendsViewModel.swift @@ -36,6 +36,7 @@ class FriendsViewModel: BaseViewModel, ObservableObject { Task { @MainActor [weak self] in guard let self else { return } appState.friend.pendingFriendRequestToken = nil + try await Task.sleep(nanoseconds: 500_000_000) await eventEmitter.emitEvent(.addFriendKakao, payload: ["requestToken": token]) } }