mirror of
https://github.com/makayabou/asg-server.git
synced 2026-05-02 17:43:36 +02:00
[mesages] do not check push token before notification
This commit is contained in:
parent
4bcfc35c87
commit
a87adefafb
@ -229,10 +229,6 @@ func (s *Service) Enqueue(device models.Device, message MessageIn, opts EnqueueO
|
||||
}
|
||||
|
||||
func (s *Service) ExportInbox(device models.Device, since, until time.Time) error {
|
||||
if device.PushToken == nil {
|
||||
return errors.New("no push token")
|
||||
}
|
||||
|
||||
event := events.NewMessagesExportRequestedEvent(since, until)
|
||||
|
||||
return s.eventsSvc.Notify(device.UserID, &device.ID, event)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user