From 00e16705dce288de412eed1c60dff8b5f6bac6a1 Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Wed, 19 Apr 2023 18:09:36 -0400
Subject: [PATCH] Maybe fix voice?

---
 indra/newview/llvoicevivox.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/newview/llvoicevivox.cpp b/indra/newview/llvoicevivox.cpp
index 764637e7b70..bed79022cd7 100644
--- a/indra/newview/llvoicevivox.cpp
+++ b/indra/newview/llvoicevivox.cpp
@@ -2076,7 +2076,7 @@ bool LLVivoxVoiceClient::waitForChannel()
             {
                 recordingAndPlaybackMode();
             }
-            else if ((checkParcelChanged() || mNextAudioSession == nullptr) && !mAreaVoiceDisabled)
+            else if ((checkParcelChanged() || (mNextAudioSession == NULL)) && LLViewerParcelMgr::instance().allowAgentVoice())
             {
                 // the parcel is changed, or we have no pending audio sessions,
                 // so try to request the parcel voice info
-- 
GitLab