@@ -228,16 +228,18 @@ class PerAccountStore extends ChangeNotifier with EmojiStore, ChannelStore, Mess
228
228
connection ?? = globalStore.apiConnectionFromAccount (account);
229
229
assert (connection.zulipFeatureLevel == account.zulipFeatureLevel);
230
230
231
+ final realmUrl = account.realmUrl;
231
232
final channels = ChannelStoreImpl (initialSnapshot: initialSnapshot);
232
233
return PerAccountStore ._(
233
234
globalStore: globalStore,
234
235
connection: connection,
235
- realmUrl: account. realmUrl,
236
+ realmUrl: realmUrl,
236
237
maxFileUploadSizeMib: initialSnapshot.maxFileUploadSizeMib,
237
238
realmDefaultExternalAccounts: initialSnapshot.realmDefaultExternalAccounts,
238
239
customProfileFields: _sortCustomProfileFields (initialSnapshot.customProfileFields),
239
240
emailAddressVisibility: initialSnapshot.emailAddressVisibility,
240
- emoji: EmojiStoreImpl (realmEmoji: initialSnapshot.realmEmoji),
241
+ emoji: EmojiStoreImpl (
242
+ realmUrl: realmUrl, realmEmoji: initialSnapshot.realmEmoji),
241
243
accountId: accountId,
242
244
selfUserId: account.userId,
243
245
userSettings: initialSnapshot.userSettings,
@@ -285,6 +287,7 @@ class PerAccountStore extends ChangeNotifier with EmojiStore, ChannelStore, Mess
285
287
}) : assert (selfUserId == globalStore.getAccount (accountId)! .userId),
286
288
assert (realmUrl == globalStore.getAccount (accountId)! .realmUrl),
287
289
assert (realmUrl == connection.realmUrl),
290
+ assert (emoji.realmUrl == realmUrl),
288
291
_globalStore = globalStore,
289
292
_emoji = emoji,
290
293
_channels = channels,
0 commit comments