Fix message notifier not handling unresolved PM channels

This commit is contained in:
Salman Ahmed 2022-06-08 04:31:31 +03:00
parent c69d53df00
commit 830ff66688

View File

@ -77,7 +77,7 @@ namespace osu.Game.Online.Chat
if (!messages.Any())
return;
var channel = channelManager.JoinedChannels.SingleOrDefault(c => c.Id == messages.First().ChannelId);
var channel = channelManager.JoinedChannels.SingleOrDefault(c => c.Id > 0 && c.Id == messages.First().ChannelId);
if (channel == null)
return;