From 1c5ec9c2d9ac71c24891ffb9f67d26be20834d31 Mon Sep 17 00:00:00 2001 From: talksik Date: Sun, 2 Jan 2022 22:32:00 -0800 Subject: [PATCH] stopping user from selecting other users during call, but can send messages --- nirvana-ios/Views/InnerCircle/CircleGridView.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nirvana-ios/Views/InnerCircle/CircleGridView.swift b/nirvana-ios/Views/InnerCircle/CircleGridView.swift index 9ae3fe5..b9168b2 100644 --- a/nirvana-ios/Views/InnerCircle/CircleGridView.swift +++ b/nirvana-ios/Views/InnerCircle/CircleGridView.swift @@ -517,6 +517,12 @@ extension CircleGridView { // listening to messages private func handleTap(gridItemIndex: Int, friendId: String) { print("tap gesture activated") + + // don't want user tapping on someone if they are in a call, but they can send a message by pressing and holding + if self.convoVM.isInCall() { + self.convoVM.toast = .alreadyInCall + return + } // clearing the player to make room for this friend's convo or to deselect this user self.queuePlayer.removeAllItems()