Skip to content

Commit a85f598

Browse files
committed
actions: Add markNarrowAsRead dialog to KeywordSearchNarrow view
1 parent 972df42 commit a85f598

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
@@ -37,10 +37,12 @@ abstract final class ZulipAction {
3737
CombinedFeedNarrow() => store.unreads.countInCombinedFeedNarrow(),
3838
ChannelNarrow(:final streamId) => store.unreads.countInChannelNarrow(streamId),
3939
MentionsNarrow() => store.unreads.countInMentionsNarrow(),
40+
KeywordSearchNarrow() => store.unreads.countInKeywordSearchNarrow(),
4041
_ => 0,
4142
};
4243

43-
if (narrow is CombinedFeedNarrow || narrow is ChannelNarrow || narrow is MentionsNarrow) {
44+
if (narrow is CombinedFeedNarrow || narrow is ChannelNarrow ||
45+
narrow is MentionsNarrow || narrow is KeywordSearchNarrow) {
4446
final didConfirm = showSuggestedActionDialog(context: context,
4547
title: zulipLocalizations.markAllAsReadConfirmationDialogTitle,
4648
message: zulipLocalizations.markAllAsReadConfirmationDialogMessage(unreadCount),

0 commit comments

Comments
 (0)