mirror of https://github.com/ppy/osu
Fix message notifier not handling unresolved PM channels
This commit is contained in:
parent
c69d53df00
commit
830ff66688
|
@ -77,7 +77,7 @@ private void checkNewMessages(IEnumerable<Message> messages)
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue