From 63dba6ea769104ab54c6a5717048a686dc907f4a Mon Sep 17 00:00:00 2001 From: Tom Brow Date: Mon, 26 Oct 2026 18:59:43 -0700 Subject: [PATCH] test(mobile): cover muted Solo chats in the push lease Signed-off-by: Tom Brow --- .../test/shared/push/push_subscription_provider_test.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mobile/test/shared/push/push_subscription_provider_test.dart b/mobile/test/shared/push/push_subscription_provider_test.dart index 360dfecc12..37c290755a 100644 --- a/mobile/test/shared/push/push_subscription_provider_test.dart +++ b/mobile/test/shared/push/push_subscription_provider_test.dart @@ -44,6 +44,7 @@ void main() { const archivedSoloID = '123e4567-e89b-42d3-a456-426614174005'; const otherSoloID = '123e4567-e89b-42d3-a456-426614174006'; const streamID = '123e4567-e89b-42d3-a456-426614174007'; + const mutedSoloID = '123e4567-e89b-42d3-a456-426614174008'; Channel solo(String id, {String? createdBy, bool archived = false}) => channel( id, @@ -65,12 +66,14 @@ void main() { solo(archivedSoloID, archived: true), solo(otherSoloID, createdBy: 'author'), channel(streamID, channelType: 'stream', visibility: 'private'), + solo(mutedSoloID), ], - mutedChannelIds: const [], + mutedChannelIds: const [mutedSoloID], ); expect(subscriptions, hasLength(2)); - expect(subscriptions!.last.filter.kinds, buzzPushChannelKinds); + expect(subscriptions!.first.ignore.last.hTags, [mutedSoloID]); + expect(subscriptions.last.filter.kinds, buzzPushChannelKinds); expect(subscriptions.last.filter.hTags, [dmID, soloID]); });