Skip to content

Commit 95865cf

Browse files
committed
internal_link: Parse "/is/starred" internal links.
Signed-off-by: Zixuan James Li <[email protected]>
1 parent 98cdbcb commit 95865cf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/model/internal_link.dart

+1
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ Narrow? _interpretNarrowSegments(List<String> segments, PerAccountStore store) {
203203
case IsOperand.private:
204204
case IsOperand.alerted:
205205
case IsOperand.starred:
206+
return const StarredMessagesNarrow();
206207
case IsOperand.followed:
207208
case IsOperand.resolved:
208209
case IsOperand.unread:

test/model/internal_link_test.dart

+1
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ void main() {
245245
case IsOperand.private:
246246
case IsOperand.alerted:
247247
case IsOperand.starred:
248+
testCases = sharedCases(const StarredMessagesNarrow());
248249
case IsOperand.followed:
249250
case IsOperand.resolved:
250251
case IsOperand.unread:

0 commit comments

Comments
 (0)