From d645ad20fd970e25099b8e68a9451274e09280e3 Mon Sep 17 00:00:00 2001 From: Anian Schleyer <98647423+anian03@users.noreply.github.com> Date: Mon, 25 Nov 2024 21:14:07 +0100 Subject: [PATCH] `Chore`: Update comments and remove debug prints (#237) * Update comment * Remove debug print statements --- .../Sources/Messages/Networking/SocketConnectionHandler.swift | 3 --- .../Services/MessagesService/MessagesServiceImpl.swift | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/ArtemisKit/Sources/Messages/Networking/SocketConnectionHandler.swift b/ArtemisKit/Sources/Messages/Networking/SocketConnectionHandler.swift index 49b3d750..ad5a281c 100644 --- a/ArtemisKit/Sources/Messages/Networking/SocketConnectionHandler.swift +++ b/ArtemisKit/Sources/Messages/Networking/SocketConnectionHandler.swift @@ -50,8 +50,6 @@ class SocketConnectionHandler { guard let messageWebsocketDTO = JSONDecoder.getTypeFromSocketMessage(type: MessageWebsocketDTO.self, message: message) else { continue } - print("Stomp channel") - messagePublisher.send(messageWebsocketDTO) } } @@ -75,7 +73,6 @@ class SocketConnectionHandler { guard let messageWebsocketDTO = JSONDecoder.getTypeFromSocketMessage(type: MessageWebsocketDTO.self, message: message) else { continue } - print("Stomp convo") messagePublisher.send(messageWebsocketDTO) } } diff --git a/ArtemisKit/Sources/Messages/Services/MessagesService/MessagesServiceImpl.swift b/ArtemisKit/Sources/Messages/Services/MessagesService/MessagesServiceImpl.swift index c0c13da2..b953189d 100644 --- a/ArtemisKit/Sources/Messages/Services/MessagesService/MessagesServiceImpl.swift +++ b/ArtemisKit/Sources/Messages/Services/MessagesService/MessagesServiceImpl.swift @@ -933,7 +933,7 @@ private extension ConversationType { // MARK: Reload Notification extension Foundation.Notification.Name { - // Sending a notification of this type causes the Notification List to be reloaded, - // when favorites are changed from elsewhere. + // Sending a notification of this type causes the Conversation + // to add the newly sent message in case the web socket fails static let newMessageSent = Foundation.Notification.Name("NewMessageSent") }