File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ import 'store.dart';
1717/// But they don't belong in `lib/api/` , because they also interact with widgets
1818/// in order to present success or error feedback to the user through the UI.
1919abstract final class ZulipAction {
20+ /// Mark the given narrow as read,
21+ /// showing feedback to the user on progress or failure.
22+ ///
23+ /// This is mostly a wrapper around [updateMessageFlagsStartingFromAnchor] ;
24+ /// for details on the UI feedback, see there.
2025 static Future <void > markNarrowAsRead (BuildContext context, Narrow narrow) async {
2126 final store = PerAccountStoreWidget .of (context);
2227 final connection = store.connection;
@@ -63,6 +68,11 @@ abstract final class ZulipAction {
6368 }
6469 }
6570
71+ /// Mark the given narrow as unread from the given message onward,
72+ /// showing feedback to the user on progress or failure.
73+ ///
74+ /// This is a wrapper around [updateMessageFlagsStartingFromAnchor] ;
75+ /// for details on the UI feedback, see there.
6676 static Future <void > markNarrowAsUnreadFromMessage (
6777 BuildContext context,
6878 Message message,
You can’t perform that action at this time.
0 commit comments