From 2a1bcdb6464fee6b890d15059cfd96d409534a4e Mon Sep 17 00:00:00 2001 From: Dominion Date: Fri, 26 May 2023 12:59:45 -0400 Subject: [PATCH] Fix unrequired channel remapping occurring upon DM --- src/Tgstation.Server.Host/Components/Chat/ChatManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/Components/Chat/ChatManager.cs b/src/Tgstation.Server.Host/Components/Chat/ChatManager.cs index 5c9208300b..a139bd6557 100644 --- a/src/Tgstation.Server.Host/Components/Chat/ChatManager.cs +++ b/src/Tgstation.Server.Host/Components/Chat/ChatManager.cs @@ -673,7 +673,7 @@ namespace Tgstation.Server.Host.Components.Chat .Any(); } - if (!recursed && !mappedChannel.HasValue && hasChannelZero) + if (!recursed && !mappedChannel.HasValue && !message.User.Channel.IsPrivateChannel && hasChannelZero) { logger.LogInformation("Receieved message from unmapped channel whose provider contains ID 0. Remapping..."); await RemapProvider(provider, cancellationToken);