mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-15 22:56:48 +00:00
fix: don't return error when event data is nil
This commit is contained in:
committed by
Jakub Cuth
parent
e1ecc11f38
commit
341a6501e6
@ -405,8 +405,8 @@ func (loop *eventLoop) processMessages(eventLog *logrus.Entry, messages []*pmapi
|
||||
msgLog.Debug("Processing EventCreate for message")
|
||||
|
||||
if message.Created == nil {
|
||||
msgLog.Error("Got EventCreate with nil message")
|
||||
return errors.Wrap(err, "no message to put into DB")
|
||||
msgLog.Warn("Got EventCreate with nil message")
|
||||
continue
|
||||
}
|
||||
|
||||
if err = loop.store.createOrUpdateMessageEvent(message.Created); err != nil {
|
||||
@ -417,8 +417,8 @@ func (loop *eventLoop) processMessages(eventLog *logrus.Entry, messages []*pmapi
|
||||
msgLog.Debug("Processing EventUpdate(Flags) for message")
|
||||
|
||||
if message.Updated == nil {
|
||||
msgLog.Errorf("Got EventUpdate(Flags) with nil message")
|
||||
return errors.Wrap(err, "missing update information")
|
||||
msgLog.Warn("Got EventUpdate(Flags) with nil message")
|
||||
continue
|
||||
}
|
||||
|
||||
var msg *pmapi.Message
|
||||
|
||||
Reference in New Issue
Block a user