Skip to content

Commit

Permalink
Wait 500ms before sending request token
Browse files Browse the repository at this point in the history
  • Loading branch information
shp7724 committed Oct 12, 2024
1 parent cde3589 commit 1a7df32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SNUTT-2022/SNUTT/ViewModels/FriendsViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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])
}
}
Expand Down

0 comments on commit 1a7df32

Please sign in to comment.