File tree 1 file changed +2
-4
lines changed 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -117,10 +117,7 @@ Future<bool> updateMessageFlagsStartingFromAnchor({
117
117
while (true ) {
118
118
final result = await updateMessageFlagsForNarrow (connection,
119
119
anchor: anchor,
120
- // Follow-up requests will have already processed the
121
- // anchor ID, so after the first iteration, this will be
122
- // unconditionally false.
123
- includeAnchor: responseCount == 0 ? includeAnchor : false ,
120
+ includeAnchor: includeAnchor,
124
121
// There is an upper limit of 5000 messages per batch
125
122
// (numBefore + numAfter <= 5000) enforced on the server.
126
123
// See `update_message_flags_in_narrow` in zerver/views/message_flags.py .
@@ -162,6 +159,7 @@ Future<bool> updateMessageFlagsStartingFromAnchor({
162
159
return false ;
163
160
}
164
161
anchor = NumericAnchor (result.lastProcessedId! );
162
+ includeAnchor = false ;
165
163
166
164
// The task is taking a while, so tell the user we're working on it.
167
165
// TODO: Ideally we'd have a progress widget here that showed up based
You can’t perform that action at this time.
0 commit comments