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
1 changed files with 1 additions and 1 deletions

View File

@ -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;