@@ -52,7 +52,7 @@ void main() {
52
52
processedCount: 11 , updatedCount: 3 ,
53
53
firstProcessedId: null , lastProcessedId: null ,
54
54
foundOldest: true , foundNewest: true ).toJson ());
55
- markNarrowAsRead (context, narrow, false );
55
+ markNarrowAsRead (context, narrow);
56
56
await tester.pump (Duration .zero);
57
57
final apiNarrow = narrow.apiEncode ()..add (ApiNarrowIsUnread ());
58
58
check (connection.lastRequest).isA< http.Request > ()
@@ -77,7 +77,7 @@ void main() {
77
77
processedCount: 11 , updatedCount: 3 ,
78
78
firstProcessedId: null , lastProcessedId: null ,
79
79
foundOldest: true , foundNewest: true ).toJson ());
80
- markNarrowAsRead (context, narrow, false );
80
+ markNarrowAsRead (context, narrow);
81
81
await tester.pump (Duration .zero);
82
82
check (connection.lastRequest).isA< http.Request > ()
83
83
..method.equals ('POST' )
@@ -103,7 +103,7 @@ void main() {
103
103
processedCount: 1000 , updatedCount: 890 ,
104
104
firstProcessedId: 1 , lastProcessedId: 1989 ,
105
105
foundOldest: true , foundNewest: false ).toJson ());
106
- markNarrowAsRead (context, narrow, false );
106
+ markNarrowAsRead (context, narrow);
107
107
final apiNarrow = narrow.apiEncode ()..add (ApiNarrowIsUnread ());
108
108
check (connection.lastRequest).isA< http.Request > ()
109
109
..method.equals ('POST' )
@@ -147,7 +147,7 @@ void main() {
147
147
processedCount: 11 , updatedCount: 3 ,
148
148
firstProcessedId: null , lastProcessedId: null ,
149
149
foundOldest: true , foundNewest: true ).toJson ());
150
- markNarrowAsRead (context, narrow, false );
150
+ markNarrowAsRead (context, narrow);
151
151
await tester.pump (Duration .zero);
152
152
await tester.pumpAndSettle ();
153
153
check (store.unreads.oldUnreadsMissing).isFalse ();
@@ -161,7 +161,7 @@ void main() {
161
161
processedCount: 1000 , updatedCount: 0 ,
162
162
firstProcessedId: null , lastProcessedId: null ,
163
163
foundOldest: true , foundNewest: false ).toJson ());
164
- markNarrowAsRead (context, narrow, false );
164
+ markNarrowAsRead (context, narrow);
165
165
await tester.pump (Duration .zero);
166
166
final apiNarrow = narrow.apiEncode ()..add (ApiNarrowIsUnread ());
167
167
check (connection.lastRequest).isA< http.Request > ()
@@ -191,7 +191,7 @@ void main() {
191
191
192
192
connection.zulipFeatureLevel = 154 ;
193
193
connection.prepare (json: {});
194
- markNarrowAsRead (context, narrow, true ); // TODO move legacy-server check inside markNarrowAsRead
194
+ markNarrowAsRead (context, narrow);
195
195
await tester.pump (Duration .zero);
196
196
check (connection.lastRequest).isA< http.Request > ()
197
197
..method.equals ('POST' )
@@ -209,7 +209,7 @@ void main() {
209
209
await prepare (tester);
210
210
connection.zulipFeatureLevel = 154 ;
211
211
connection.prepare (json: {});
212
- markNarrowAsRead (context, narrow, true ); // TODO move legacy-server check inside markNarrowAsRead
212
+ markNarrowAsRead (context, narrow);
213
213
await tester.pump (Duration .zero);
214
214
check (connection.lastRequest).isA< http.Request > ()
215
215
..method.equals ('POST' )
@@ -224,7 +224,7 @@ void main() {
224
224
await prepare (tester);
225
225
connection.zulipFeatureLevel = 154 ;
226
226
connection.prepare (json: {});
227
- markNarrowAsRead (context, narrow, true ); // TODO move legacy-server check inside markNarrowAsRead
227
+ markNarrowAsRead (context, narrow);
228
228
await tester.pump (Duration .zero);
229
229
check (connection.lastRequest).isA< http.Request > ()
230
230
..method.equals ('POST' )
@@ -246,7 +246,7 @@ void main() {
246
246
connection.zulipFeatureLevel = 154 ;
247
247
connection.prepare (json:
248
248
UpdateMessageFlagsResult (messages: [message.id]).toJson ());
249
- markNarrowAsRead (context, narrow, true ); // TODO move legacy-server check inside markNarrowAsRead
249
+ markNarrowAsRead (context, narrow);
250
250
await tester.pump (Duration .zero);
251
251
check (connection.lastRequest).isA< http.Request > ()
252
252
..method.equals ('POST' )
@@ -266,7 +266,7 @@ void main() {
266
266
connection.zulipFeatureLevel = 154 ;
267
267
connection.prepare (json:
268
268
UpdateMessageFlagsResult (messages: [message.id]).toJson ());
269
- markNarrowAsRead (context, narrow, true ); // TODO move legacy-server check inside markNarrowAsRead
269
+ markNarrowAsRead (context, narrow);
270
270
await tester.pump (Duration .zero);
271
271
check (connection.lastRequest).isA< http.Request > ()
272
272
..method.equals ('POST' )
@@ -283,7 +283,7 @@ void main() {
283
283
const narrow = CombinedFeedNarrow ();
284
284
await prepare (tester);
285
285
connection.prepare (exception: http.ClientException ('Oops' ));
286
- markNarrowAsRead (context, narrow, false );
286
+ markNarrowAsRead (context, narrow);
287
287
await tester.pump (Duration .zero);
288
288
await tester.pumpAndSettle ();
289
289
checkErrorDialog (tester,
0 commit comments