Fix hidden notes when hidden words if empty

This commit is contained in:
greenart7c3
2024-06-14 12:35:17 -03:00
parent d7a22f609a
commit dad455f9a0

View File

@@ -766,7 +766,7 @@ open class Note(
}
if (thisEvent is BaseTextNoteEvent) {
if (thisEvent.content.containsAny(accountChoices.hiddenWordsCase)) {
if (accountChoices.hiddenWordsCase.isNotEmpty() && thisEvent.content.containsAny(accountChoices.hiddenWordsCase)) {
return true
}
}