From 71e7f9217e6c89e95a29d4b68676dee88a1471a6 Mon Sep 17 00:00:00 2001 From: avashilling <165050625+avashilling@users.noreply.github.com> Date: Thu, 30 Oct 2025 09:18:23 -0400 Subject: [PATCH] dont mark new tokens for unsubscribed users (#4539) --- lib/pangea/message_token_text/tokens_util.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pangea/message_token_text/tokens_util.dart b/lib/pangea/message_token_text/tokens_util.dart index b49c1f464..550c48e49 100644 --- a/lib/pangea/message_token_text/tokens_util.dart +++ b/lib/pangea/message_token_text/tokens_util.dart @@ -74,7 +74,9 @@ class TokensUtil { static List getNewTokens( PangeaMessageEvent event, ) { - if (!event.eventId.isValidMatrixId) { + if (!event.eventId.isValidMatrixId || + (MatrixState.pangeaController.subscriptionController.isSubscribed == + false)) { return []; }