dont mark new tokens for unsubscribed users (#4539)

This commit is contained in:
avashilling 2025-10-30 09:18:23 -04:00 committed by GitHub
parent b6c61c6683
commit 71e7f9217e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -74,7 +74,9 @@ class TokensUtil {
static List<PangeaTokenText> getNewTokens(
PangeaMessageEvent event,
) {
if (!event.eventId.isValidMatrixId) {
if (!event.eventId.isValidMatrixId ||
(MatrixState.pangeaController.subscriptionController.isSubscribed ==
false)) {
return [];
}