stopping user from selecting other users during call, but can send messages

This commit is contained in:
talksik
2022-01-02 22:32:00 -08:00
parent ccdcf9668f
commit 1c5ec9c2d9
@@ -517,6 +517,12 @@ extension CircleGridView {
// listening to messages // listening to messages
private func handleTap(gridItemIndex: Int, friendId: String) { private func handleTap(gridItemIndex: Int, friendId: String) {
print("tap gesture activated") 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 // clearing the player to make room for this friend's convo or to deselect this user
self.queuePlayer.removeAllItems() self.queuePlayer.removeAllItems()