mirror of
https://github.com/pushbits/server.git
synced 2025-04-29 18:26:49 +02:00
Handle unhandled error in dispatcher
This commit is contained in:
parent
db3f669c5f
commit
cecf22544d
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue