mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-15 22:56:48 +00:00
refactor: remove unexported fetchMessage
This commit is contained in:
@ -430,7 +430,7 @@ func (loop *eventLoop) processMessages(eventLog *logrus.Entry, messages []*pmapi
|
||||
|
||||
msgLog.WithError(err).Warning("Message was not present in DB. Trying fetch...")
|
||||
|
||||
if msg, err = loop.store.fetchMessage(message.ID); err != nil {
|
||||
if msg, err = loop.apiClient.GetMessage(message.ID); err != nil {
|
||||
if err == pmapi.ErrNoSuchMessage {
|
||||
msgLog.WithError(err).Warn("Skipping message update because message exists neither in local DB nor on API")
|
||||
err = nil
|
||||
|
||||
Reference in New Issue
Block a user