Fix unrequired channel remapping occurring upon DM

This commit is contained in:
Dominion
2023-05-26 12:59:45 -04:00
parent d3be54be15
commit 2a1bcdb646
@@ -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);