Undo bad credentials state on non-default sms app

This commit is contained in:
Tulir Asokan 2023-09-04 16:47:23 +03:00
parent 51c68f4919
commit 0ddfd65b8b

View file

@ -803,10 +803,6 @@ func (user *User) FillBridgeState(state status.BridgeState) status.BridgeState {
state.Info["battery_low"] = user.batteryLow
state.Info["mobile_data"] = user.mobileData
state.Info["browser_active"] = user.browserInactiveType == ""
if user.Settings.SettingsReceived && !user.Settings.IsDefaultSMSApp {
state.StateEvent = status.StateBadCredentials
state.Error = GMNotDefaultSMSApp
}
if !user.ready {
state.StateEvent = status.StateConnecting
state.Error = GMConnecting