@@ -106,7 +106,6 @@ class ConsentBackend {
106106 /// - if it was sent recently, do nothing.
107107 Future <api.InviteStatus > _invite ({
108108 required AuthenticatedAgent activeAgent,
109- required User activeUser,
110109 required String email,
111110 required String kind,
112111 required List <String > args,
@@ -129,7 +128,7 @@ class ConsentBackend {
129128 await _delete (old, (a) => a.onExpire (old));
130129 } else if (old.shouldNotify ()) {
131130 // non-expired entries just re-send the notification
132- return await _sendNotification (activeUser.email ! , old);
131+ return await _sendNotification (activeAgent.displayId , old);
133132 } else {
134133 return api.InviteStatus (
135134 emailSent: false , nextNotification: old.nextNotification);
@@ -146,20 +145,18 @@ class ConsentBackend {
146145 consent,
147146 auditLogRecord,
148147 ]);
149- return await _sendNotification (activeUser.email ! , consent);
148+ return await _sendNotification (activeAgent.displayId , consent);
150149 });
151150 }
152151
153152 /// Invites a new uploader to the package.
154153 Future <api.InviteStatus > invitePackageUploader ({
155154 required AuthenticatedAgent agent,
156- required User activeUser,
157155 required String packageName,
158156 required String uploaderEmail,
159157 }) async {
160158 return await _invite (
161159 activeAgent: agent,
162- activeUser: activeUser,
163160 email: uploaderEmail,
164161 kind: ConsentKind .packageUploader,
165162 args: [packageName],
@@ -180,7 +177,6 @@ class ConsentBackend {
180177 final user = authenticatedUser.user;
181178 return await _invite (
182179 activeAgent: authenticatedUser,
183- activeUser: user,
184180 email: contactEmail,
185181 kind: ConsentKind .publisherContact,
186182 args: [publisherId, contactEmail],
@@ -192,13 +188,11 @@ class ConsentBackend {
192188 /// Invites a new member for the publisher.
193189 Future <api.InviteStatus > invitePublisherMember ({
194190 required AuthenticatedAgent authenticatedAgent,
195- required User activeUser,
196191 required String publisherId,
197192 required String invitedUserEmail,
198193 }) async {
199194 return await _invite (
200195 activeAgent: authenticatedAgent,
201- activeUser: activeUser,
202196 email: invitedUserEmail,
203197 kind: ConsentKind .publisherMember,
204198 args: [publisherId],
0 commit comments