From 65c153de61a782520b802f85c213d5376cd95cf9 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 18 Mar 2022 23:30:03 +0100 Subject: [PATCH] changed the way sent and received messages are stored --- serverCommunication/serverCommunication.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/serverCommunication/serverCommunication.go b/serverCommunication/serverCommunication.go index 79ed727..e5976c2 100644 --- a/serverCommunication/serverCommunication.go +++ b/serverCommunication/serverCommunication.go @@ -36,15 +36,15 @@ func AckHandler() { logger.Web.Debugln("ack handler running") for _, webClient := range cache.WebClients { - for _, msg := range webClient.SendVoiceQueueMessages { - logger.Web.Debugln("ackHandler voice:", webClient.SendVoiceQueueMessages) + logger.Web.Debugln("ackHandler voice:", webClient.SendVoiceQueueMessages) + for _, msg := range webClient.SendVoiceQueueMessages { handleSendQueueMessage(currentTime, webClient, true, nil, msg) } - for _, msg := range webClient.SendMobileQueueMessages { - logger.Web.Debugln("ackHandler mobile:", webClient.SendMobileQueueMessages) + logger.Web.Debugln("ackHandler mobile:", webClient.SendMobileQueueMessages) + for _, msg := range webClient.SendMobileQueueMessages { handleSendQueueMessage(currentTime, webClient, false, nil, msg) } }