File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -257,8 +257,7 @@ class _PasswordLoginPageState extends State<PasswordLoginPage> {
257
257
258
258
bool _inProgress = false ;
259
259
260
- Future <int > _getUserId (FetchApiKeyResult fetchApiKeyResult) async {
261
- final FetchApiKeyResult (: email, : apiKey) = fetchApiKeyResult;
260
+ Future <int > _getUserId (String email, apiKey) async {
262
261
final connection = ApiConnection .live ( // TODO make this widget testable
263
262
realmUrl: widget.serverSettings.realmUrl,
264
263
zulipFeatureLevel: widget.serverSettings.zulipFeatureLevel,
@@ -305,7 +304,7 @@ class _PasswordLoginPageState extends State<PasswordLoginPage> {
305
304
}
306
305
307
306
// TODO(server-7): Rely on user_id from fetchApiKey.
308
- final int userId = result.userId ?? await _getUserId (result);
307
+ final int userId = result.userId ?? await _getUserId (result.email, result.apiKey );
309
308
// https://github.com/dart-lang/linter/issues/4007
310
309
// ignore: use_build_context_synchronously
311
310
if (! context.mounted) {
You can’t perform that action at this time.
0 commit comments