Add log after SetActiveSession call and fix LoginGoogle error message

This commit is contained in:
Tulir Asokan 2024-02-23 22:44:06 +02:00
parent fec15f4bc8
commit 2ca85cf2bd
2 changed files with 2 additions and 1 deletions

View file

@ -168,6 +168,7 @@ func (c *Client) postConnect() {
})
return
}
c.Logger.Debug().Msg("Sent set active session/get updates request")
if c.AuthData.Mobile.Network != util.QRNetwork {
// Don't check bugle default unless using bugle
return

View file

@ -534,7 +534,7 @@ func (user *User) LoginGoogle(cookies map[string]string, emojiCallback func(stri
user.unlockedDeleteConnection()
user.pairSuccessChan = nil
user.loginInProgress.Store(false)
return fmt.Errorf("failed to connect to Google Messages: %w", err)
return err
}
return nil
}