From b432747f2c22c7738b8c9b77561088abe1264db8 Mon Sep 17 00:00:00 2001 From: talksik Date: Sun, 2 Jan 2022 02:08:37 -0800 Subject: [PATCH] adding alerttoast --- nirvana-ios/Views/Convos/ConvoViewModel.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/nirvana-ios/Views/Convos/ConvoViewModel.swift b/nirvana-ios/Views/Convos/ConvoViewModel.swift index 9b82635..6abdf79 100644 --- a/nirvana-ios/Views/Convos/ConvoViewModel.swift +++ b/nirvana-ios/Views/Convos/ConvoViewModel.swift @@ -37,6 +37,7 @@ class ConvoViewModel: NSObject, ObservableObject { case .alreadyInCall: return AlertToast(displayMode: .hud, type: .error(Color.orange), title: "Leave your current convo first!") case .friendNotOnline: + return AlertToast(displayMode: .alert, type: .error(Color.orange), title: "friend not online", subTitle: "send them a voice message to notify them") case .connecting: return AlertToast(displayMode: .hud, type: .systemImage("sensor.tag.radiowaves.forward.fill", NirvanaColor.dimTeal), title: "Connecting") case .disconnected: