fix: unbreak error reporting for @mention prefix

This commit is contained in:
spiral
2022-01-14 15:05:46 -05:00
parent 47e15e3acb
commit d58cc216c0
3 changed files with 5 additions and 6 deletions

View File

@@ -220,7 +220,8 @@ public class Bot
return;
// Once we've sent it to Sentry, report it to the user (if we have permission to)
var reportChannel = handler.ErrorChannelFor(evt);
var ourUserId = await _cache.GetOwnUser();
var reportChannel = handler.ErrorChannelFor(evt, ourUserId);
if (reportChannel == null)
return;