You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getHaveServerData: Fix unsafe zulipVersion access causing crash on login
This fixes a regression introduced in 3b811d6 that made it
impossible to log into a new account, by crashing just after
completing authentication with the message "zulipVersion must be
non-null".
Oops: getHaveServerData was not an OK place to call
getServerVersion. From the jsdoc:
* This function assumes we have server data for this account, and if not it
* may throw. […]
So, abandon that selector and access zulipVersion safely.
While I was at it, I double-checked `Account['zulipVersion']` and
`Account['zulipFeatureLevel']` …and found that their jsdocs weren't
right about when those fields were null. Fix that, copying some text
from the jsdoc of `Account['userId']`.
0 commit comments