dont mark new tokens for unsubscribed users (#4539)
This commit is contained in:
parent
b6c61c6683
commit
71e7f9217e
1 changed files with 3 additions and 1 deletions
|
|
@ -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 [];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue