@@ -226,7 +226,7 @@ class PerAccountStore extends ChangeNotifier with ChannelStore, MessageStore {
226
226
connection ?? = globalStore.apiConnectionFromAccount (account);
227
227
assert (connection.zulipFeatureLevel == account.zulipFeatureLevel);
228
228
229
- final streams = ChannelStoreImpl (initialSnapshot: initialSnapshot);
229
+ final channels = ChannelStoreImpl (initialSnapshot: initialSnapshot);
230
230
return PerAccountStore ._(
231
231
globalStore: globalStore,
232
232
connection: connection,
@@ -247,12 +247,12 @@ class PerAccountStore extends ChangeNotifier with ChannelStore, MessageStore {
247
247
selfUserId: account.userId,
248
248
typingStartedExpiryPeriod: Duration (milliseconds: initialSnapshot.serverTypingStartedExpiryPeriodMilliseconds),
249
249
),
250
- streams : streams ,
250
+ channels : channels ,
251
251
messages: MessageStoreImpl (),
252
252
unreads: Unreads (
253
253
initial: initialSnapshot.unreadMsgs,
254
254
selfUserId: account.userId,
255
- streamStore : streams ,
255
+ channelStore : channels ,
256
256
),
257
257
recentDmConversationsView: RecentDmConversationsView (
258
258
initial: initialSnapshot.recentPrivateConversations, selfUserId: account.userId),
@@ -272,15 +272,15 @@ class PerAccountStore extends ChangeNotifier with ChannelStore, MessageStore {
272
272
required this .userSettings,
273
273
required this .users,
274
274
required this .typingStatus,
275
- required ChannelStoreImpl streams ,
275
+ required ChannelStoreImpl channels ,
276
276
required MessageStoreImpl messages,
277
277
required this .unreads,
278
278
required this .recentDmConversationsView,
279
279
}) : assert (selfUserId == globalStore.getAccount (accountId)! .userId),
280
280
assert (realmUrl == globalStore.getAccount (accountId)! .realmUrl),
281
281
assert (realmUrl == connection.realmUrl),
282
282
_globalStore = globalStore,
283
- _streams = streams ,
283
+ _channels = channels ,
284
284
_messages = messages;
285
285
286
286
////////////////////////////////////////////////////////////////
@@ -331,19 +331,19 @@ class PerAccountStore extends ChangeNotifier with ChannelStore, MessageStore {
331
331
// Streams, topics, and stuff about them.
332
332
333
333
@override
334
- Map <int , ZulipStream > get streams => _streams .streams;
334
+ Map <int , ZulipStream > get streams => _channels .streams;
335
335
@override
336
- Map <String , ZulipStream > get streamsByName => _streams .streamsByName;
336
+ Map <String , ZulipStream > get streamsByName => _channels .streamsByName;
337
337
@override
338
- Map <int , Subscription > get subscriptions => _streams .subscriptions;
338
+ Map <int , Subscription > get subscriptions => _channels .subscriptions;
339
339
@override
340
340
UserTopicVisibilityPolicy topicVisibilityPolicy (int streamId, String topic) =>
341
- _streams .topicVisibilityPolicy (streamId, topic);
341
+ _channels .topicVisibilityPolicy (streamId, topic);
342
342
343
- final ChannelStoreImpl _streams ;
343
+ final ChannelStoreImpl _channels ;
344
344
345
345
@visibleForTesting
346
- ChannelStoreImpl get debugStreamStore => _streams ;
346
+ ChannelStoreImpl get debugChannelStore => _channels ;
347
347
348
348
////////////////////////////////
349
349
// Messages, and summaries of messages.
@@ -474,17 +474,17 @@ class PerAccountStore extends ChangeNotifier with ChannelStore, MessageStore {
474
474
475
475
case StreamEvent ():
476
476
assert (debugLog ("server event: stream/${event .op }" ));
477
- _streams .handleStreamEvent (event);
477
+ _channels .handleStreamEvent (event);
478
478
notifyListeners ();
479
479
480
480
case SubscriptionEvent ():
481
481
assert (debugLog ("server event: subscription/${event .op }" ));
482
- _streams .handleSubscriptionEvent (event);
482
+ _channels .handleSubscriptionEvent (event);
483
483
notifyListeners ();
484
484
485
485
case UserTopicEvent ():
486
486
assert (debugLog ("server event: user_topic" ));
487
- _streams .handleUserTopicEvent (event);
487
+ _channels .handleUserTopicEvent (event);
488
488
notifyListeners ();
489
489
490
490
case MessageEvent ():
0 commit comments