File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -117,18 +117,23 @@ void main() {
117
117
Future <void > prepare ({
118
118
ZulipStream ? channel,
119
119
String topic = someTopic,
120
+ bool isChannelSubscribed = true ,
121
+ bool ? isChannelMuted,
120
122
UnreadMessagesSnapshot ? unreadMsgs,
121
123
int ? zulipFeatureLevel,
122
124
}) async {
123
125
final effectiveChannel = channel ?? someChannel;
126
+ assert (isChannelSubscribed || isChannelMuted == null );
124
127
125
128
addTearDown (testBinding.reset);
126
129
127
130
final account = eg.selfAccount.copyWith (zulipFeatureLevel: zulipFeatureLevel);
128
131
await testBinding.globalStore.add (account, eg.initialSnapshot (
129
132
realmUsers: [eg.selfUser, eg.otherUser],
130
133
streams: [effectiveChannel],
131
- subscriptions: [eg.subscription (effectiveChannel)],
134
+ subscriptions: isChannelSubscribed
135
+ ? [eg.subscription (effectiveChannel, isMuted: isChannelMuted ?? false )]
136
+ : null ,
132
137
unreadMsgs: unreadMsgs,
133
138
zulipFeatureLevel: zulipFeatureLevel));
134
139
store = await testBinding.globalStore.perAccount (eg.selfAccount.id);
You can’t perform that action at this time.
0 commit comments