File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ import 'store.dart';
17
17
/// But they don't belong in `lib/api/` , because they also interact with widgets
18
18
/// in order to present success or error feedback to the user through the UI.
19
19
abstract 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.
20
25
static Future <void > markNarrowAsRead (BuildContext context, Narrow narrow) async {
21
26
final store = PerAccountStoreWidget .of (context);
22
27
final connection = store.connection;
@@ -63,6 +68,11 @@ abstract final class ZulipAction {
63
68
}
64
69
}
65
70
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.
66
76
static Future <void > markNarrowAsUnreadFromMessage (
67
77
BuildContext context,
68
78
Message message,
You can’t perform that action at this time.
0 commit comments