Merge pull request #57 from pushbits/dispatcher-fix-unhandled-error

Handle unhandled error in dispatcher
This commit is contained in:
Raphael Eikenberg 2022-10-30 23:54:59 +01:00 committed by GitHub
commit 9bb54064a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,6 +72,9 @@ func (d *Dispatcher) SendNotification(a *model.Application, n *model.Notificatio
}
evt, err := d.mautrixClient.SendMessageEvent(mId.RoomID(a.MatrixID), event.EventMessage, &messageEvent)
if err != nil {
return "", err
}
return evt.EventID.String(), err
}