Make not connected errors in sync handling non-fatal

This commit is contained in:
Tulir Asokan 2019-05-27 14:01:30 +03:00
parent 402f482db3
commit 3f13e13d36

View file

@ -137,7 +137,8 @@ func (puppet *Puppet) stopSyncing() {
func (puppet *Puppet) ProcessResponse(resp *mautrix.RespSync, since string) error {
if !puppet.customUser.Connected {
return fmt.Errorf("custom user not connected to whatsapp")
puppet.log.Warnln("Skipping sync processing: custom user not connected to whatsapp")
return nil
}
for roomID, events := range resp.Rooms.Join {
portal := puppet.bridge.GetPortalByMXID(roomID)