@@ -63,7 +63,7 @@ protected override async Task NewRequest(NotificationOptions model, MobileNotifi
6363
6464 // Get admin devices
6565 var playerIds = await GetPrivilegedUsersPlayerIds ( ) ;
66- await Send ( playerIds , notification , settings , model , true ) ;
66+ await Send ( playerIds , notification ) ;
6767 }
6868
6969 protected override async Task NewIssue ( NotificationOptions model , MobileNotificationSettings settings )
@@ -83,7 +83,7 @@ protected override async Task NewIssue(NotificationOptions model, MobileNotifica
8383
8484 // Get admin devices
8585 var playerIds = await GetAdmins ( ) ;
86- await Send ( playerIds , notification , settings , model ) ;
86+ await Send ( playerIds , notification ) ;
8787 }
8888
8989 protected override async Task IssueComment ( NotificationOptions model , MobileNotificationSettings settings )
@@ -107,13 +107,13 @@ protected override async Task IssueComment(NotificationOptions model, MobileNoti
107107 model . Substitutes . TryGetValue ( "IssueId" , out var issueId ) ;
108108 // Send to user
109109 var playerIds = await GetUsersForIssue ( model , int . Parse ( issueId ) , NotificationType . IssueComment ) ;
110- await Send ( playerIds , notification , settings , model ) ;
110+ await Send ( playerIds , notification ) ;
111111 }
112112 else
113113 {
114114 // Send to admin
115115 var playerIds = await GetAdmins ( ) ;
116- await Send ( playerIds , notification , settings , model ) ;
116+ await Send ( playerIds , notification ) ;
117117 }
118118 }
119119 }
@@ -136,7 +136,7 @@ protected override async Task IssueResolved(NotificationOptions model, MobileNot
136136 // Send to user
137137 var playerIds = await GetUsers ( model , NotificationType . IssueResolved ) ;
138138
139- await Send ( playerIds , notification , settings , model ) ;
139+ await Send ( playerIds , notification ) ;
140140 }
141141
142142
@@ -158,7 +158,7 @@ protected override async Task AddedToRequestQueue(NotificationOptions model, Mob
158158
159159 // Get admin devices
160160 var playerIds = await GetAdmins ( ) ;
161- await Send ( playerIds , notification , settings , model ) ;
161+ await Send ( playerIds , notification ) ;
162162 }
163163
164164 protected override async Task RequestDeclined ( NotificationOptions model , MobileNotificationSettings settings )
@@ -179,7 +179,7 @@ protected override async Task RequestDeclined(NotificationOptions model, MobileN
179179 // Send to user
180180 var playerIds = await GetUsers ( model , NotificationType . RequestDeclined ) ;
181181 await AddSubscribedUsers ( playerIds ) ;
182- await Send ( playerIds , notification , settings , model ) ;
182+ await Send ( playerIds , notification ) ;
183183 }
184184
185185 protected override async Task RequestApproved ( NotificationOptions model , MobileNotificationSettings settings )
@@ -201,7 +201,7 @@ protected override async Task RequestApproved(NotificationOptions model, MobileN
201201 var playerIds = await GetUsers ( model , NotificationType . RequestApproved ) ;
202202
203203 await AddSubscribedUsers ( playerIds ) ;
204- await Send ( playerIds , notification , settings , model ) ;
204+ await Send ( playerIds , notification ) ;
205205 }
206206
207207 protected override async Task AvailableRequest ( NotificationOptions model , MobileNotificationSettings settings )
@@ -225,7 +225,7 @@ protected override async Task AvailableRequest(NotificationOptions model, Mobile
225225 var playerIds = await GetUsers ( model , NotificationType . RequestAvailable ) ;
226226
227227 await AddSubscribedUsers ( playerIds ) ;
228- await Send ( playerIds , notification , settings , model ) ;
228+ await Send ( playerIds , notification ) ;
229229 }
230230
231231 private static Dictionary < string , string > GetNotificationData ( NotificationMessageContent parsed , NotificationType type )
@@ -240,7 +240,7 @@ protected override Task Send(NotificationMessage model, MobileNotificationSettin
240240 throw new NotImplementedException ( ) ;
241241 }
242242
243- protected async Task Send ( List < string > playerIds , NotificationMessage model , MobileNotificationSettings settings , NotificationOptions requestModel , bool isAdminNotification = false )
243+ protected async Task Send ( List < string > playerIds , NotificationMessage model )
244244 {
245245 if ( playerIds == null || ! playerIds . Any ( ) )
246246 {
@@ -276,7 +276,7 @@ protected override async Task Test(NotificationOptions model, MobileNotification
276276 }
277277
278278 var playerIds = user . NotificationUserIds . Select ( x => x . PlayerId ) . ToList ( ) ;
279- await Send ( playerIds , notification , settings , model ) ;
279+ await Send ( playerIds , notification ) ;
280280 }
281281
282282 private async Task < List < string > > GetAdmins ( )
@@ -382,13 +382,15 @@ protected override async Task PartiallyAvailable(NotificationOptions model, Mobi
382382 var notification = new NotificationMessage
383383 {
384384 Message = parsed . Message ,
385- Subject = "New Request" ,
385+ Subject = "Request Partially Available " ,
386386 Data = GetNotificationData ( parsed , NotificationType . PartiallyAvailable )
387387 } ;
388388
389- // Get admin devices
390- var playerIds = await GetAdmins ( ) ;
391- await Send ( playerIds , notification , settings , model , true ) ;
389+
390+ var playerIds = await GetUsers ( model , NotificationType . PartiallyAvailable ) ;
391+
392+ await AddSubscribedUsers ( playerIds ) ;
393+ await Send ( playerIds , notification ) ;
392394 }
393395 }
394396}
0 commit comments