@@ -7,7 +7,7 @@ import '../api/model/model.dart';
7
7
/// This type is useful for expressing the needs of other parts of the
8
8
/// implementation of [PerAccountStore] , to avoid circularity.
9
9
///
10
- /// The data structures described here are implemented at [StreamStoreImpl ] .
10
+ /// The data structures described here are implemented at [ChannelStoreImpl ] .
11
11
mixin ChannelStore {
12
12
Map <int , ZulipStream > get streams;
13
13
Map <String , ZulipStream > get streamsByName;
@@ -72,8 +72,8 @@ mixin ChannelStore {
72
72
/// Generally the only code that should need this class is [PerAccountStore]
73
73
/// itself. Other code accesses this functionality through [PerAccountStore] ,
74
74
/// or through the mixin [ChannelStore] which describes its interface.
75
- class StreamStoreImpl with ChannelStore {
76
- factory StreamStoreImpl ({required InitialSnapshot initialSnapshot}) {
75
+ class ChannelStoreImpl with ChannelStore {
76
+ factory ChannelStoreImpl ({required InitialSnapshot initialSnapshot}) {
77
77
final subscriptions = Map .fromEntries (initialSnapshot.subscriptions.map (
78
78
(subscription) => MapEntry (subscription.streamId, subscription)));
79
79
@@ -92,15 +92,15 @@ class StreamStoreImpl with ChannelStore {
92
92
forStream[item.topicName] = item.visibilityPolicy;
93
93
}
94
94
95
- return StreamStoreImpl ._(
95
+ return ChannelStoreImpl ._(
96
96
streams: streams,
97
97
streamsByName: streams.map ((_, stream) => MapEntry (stream.name, stream)),
98
98
subscriptions: subscriptions,
99
99
topicVisibility: topicVisibility,
100
100
);
101
101
}
102
102
103
- StreamStoreImpl ._({
103
+ ChannelStoreImpl ._({
104
104
required this .streams,
105
105
required this .streamsByName,
106
106
required this .subscriptions,
0 commit comments