Skip to content

Commit 31624d5

Browse files
committed
store [nfc]: Simplify a line to store.realmUrl, skipping connection
The store itself carries the realm URL; see this field's doc. No need to reach further to the ApiConnection.
1 parent 92c59ba commit 31624d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/model/store.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ class UpdateMachine {
10161016

10171017
store.isLoading = true;
10181018
final localizations = GlobalLocalizations.zulipLocalizations;
1019-
final serverUrl = store.connection.realmUrl.origin;
1019+
final serverUrl = store.realmUrl.origin;
10201020
switch (e) {
10211021
case ZulipApiException(code: 'BAD_EVENT_QUEUE_ID'):
10221022
assert(debugLog('Lost event queue for $store. Replacing…'));

0 commit comments

Comments
 (0)