@@ -132,6 +132,18 @@ void main() {
132132 ]);
133133 check (listedStreamIds (tester)).deepEquals ([1 , 2 , 3 , 4 , 5 , 6 ]);
134134 });
135+
136+ testWidgets ('muted subscriptions come last among pinned streams and among unpinned streams' , (tester) async {
137+ await setupStreamListPage (tester, subscriptions: [
138+ eg.subscription (eg.stream (streamId: 1 , name: 'a' ), isMuted: true , pinToTop: true ),
139+ eg.subscription (eg.stream (streamId: 2 , name: 'b' ), isMuted: false , pinToTop: true ),
140+ eg.subscription (eg.stream (streamId: 3 , name: 'c' ), isMuted: true , pinToTop: true ),
141+ eg.subscription (eg.stream (streamId: 4 , name: 'd' ), isMuted: false , pinToTop: false ),
142+ eg.subscription (eg.stream (streamId: 5 , name: 'e' ), isMuted: true , pinToTop: false ),
143+ eg.subscription (eg.stream (streamId: 6 , name: 'f' ), isMuted: false , pinToTop: false ),
144+ ]);
145+ check (listedStreamIds (tester)).deepEquals ([2 , 1 , 3 , 4 , 6 , 5 ]);
146+ });
135147 });
136148
137149 testWidgets ('unread badge shows with unreads' , (tester) async {
0 commit comments