Skip to content

Commit f0bf130

Browse files
committed
actions: Add markNarrowAsRead dialog to StarredMessagesNarrow view
1 parent a85f598 commit f0bf130

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/widgets/actions.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@ abstract final class ZulipAction {
3838
ChannelNarrow(:final streamId) => store.unreads.countInChannelNarrow(streamId),
3939
MentionsNarrow() => store.unreads.countInMentionsNarrow(),
4040
KeywordSearchNarrow() => store.unreads.countInKeywordSearchNarrow(),
41+
StarredMessagesNarrow() => store.unreads.countInStarredMessagesNarrow(),
4142
_ => 0,
4243
};
4344

4445
if (narrow is CombinedFeedNarrow || narrow is ChannelNarrow ||
45-
narrow is MentionsNarrow || narrow is KeywordSearchNarrow) {
46+
narrow is MentionsNarrow || narrow is KeywordSearchNarrow ||
47+
narrow is StarredMessagesNarrow) {
4648
final didConfirm = showSuggestedActionDialog(context: context,
4749
title: zulipLocalizations.markAllAsReadConfirmationDialogTitle,
4850
message: zulipLocalizations.markAllAsReadConfirmationDialogMessage(unreadCount),

0 commit comments

Comments
 (0)