[mesages] do not check push token before notification

This commit is contained in:
Aleksandr Soloshenko 2025-07-22 13:25:13 +07:00 committed by Aleksandr
parent 4bcfc35c87
commit a87adefafb

View File

@ -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)