From ec77d7cc1b8bc1c3058c2bfdcfcccb781f338f20 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 11 Apr 2023 16:29:17 +0200 Subject: pkg/email: expose OwnEmail flag We anyway already extract this information, there's no sense in extracting it again in other places. --- dashboard/app/reporting_email.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dashboard') diff --git a/dashboard/app/reporting_email.go b/dashboard/app/reporting_email.go index 8b260a3d3..67c8258e8 100644 --- a/dashboard/app/reporting_email.go +++ b/dashboard/app/reporting_email.go @@ -577,7 +577,7 @@ func processDiscussionEmail(c context.Context, msg *email.Email, source dashapi. msgType: dType, bugIDs: extIDs, inReplyTo: msg.InReplyTo, - external: ownEmail(c) != msg.Author, + external: !msg.OwnEmail, time: msg.Date, }) if err != nil { -- cgit mrf-deployment