Skip to content

Commit dad455f

Browse files
committed
Fix hidden notes when hidden words if empty
1 parent d7a22f6 commit dad455f

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/java/com/vitorpamplona/amethyst/model

1 file changed

+1
-1
lines changed

app/src/main/java/com/vitorpamplona/amethyst/model/Note.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ open class Note(
766766
}
767767

768768
if (thisEvent is BaseTextNoteEvent) {
769-
if (thisEvent.content.containsAny(accountChoices.hiddenWordsCase)) {
769+
if (accountChoices.hiddenWordsCase.isNotEmpty() && thisEvent.content.containsAny(accountChoices.hiddenWordsCase)) {
770770
return true
771771
}
772772
}

0 commit comments

Comments
 (0)