Correction de l'envoi GCM depuis multi device

This commit is contained in:
Paul Schneider 2016-05-31 15:59:29 +02:00
commit 8343abd2b4
5 changed files with 15 additions and 25 deletions

View file

@ -133,9 +133,9 @@ namespace Yavsc.Controllers
_context.SaveChanges();
if (command.PerformerProfile.AcceptNotifications
&& command.PerformerProfile.AcceptPublicContact
&& command.PerformerProfile.Performer.GoogleRegId!=null) {
&& command.PerformerProfile.Performer.Devices.Select(d=>d.RegistrationId)!=null) {
grep = await _GCMSender.NotifyAsync(_googleSettings,
command.PerformerProfile.Performer.GoogleRegId,
command.PerformerProfile.Performer.Devices.Select(d=>d.RegistrationId),
yaev
);
}