File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,12 @@ export const getServerVersion = (state: PerAccountState): ZulipVersion => {
121
121
// At that point probably just have a migration drop those Account
122
122
// records -- they mean accounts the user hasn't talked to since
123
123
// 1e17f6695, from 2020-05.
124
+ //
125
+ // Oh, and there's one other case where an Account record will lack this
126
+ // data: immediately after login, before we complete the first initial
127
+ // fetch. That's fixable, though: we already have the version from
128
+ // server_settings when we enter the login flow, so we just need to
129
+ // remember that value and stick it in the initial Account record.
124
130
invariant ( zulipVersion , 'zulipVersion must be non-null' ) ;
125
131
return zulipVersion ;
126
132
} ;
You can’t perform that action at this time.
0 commit comments