Skip to main content

ChatSearchMatchesTerms

Callable

  • ChatSearchMatchesTerms(Room: { Name: string }, Terms: string[]): boolean

  • Check if a room matches filtered-out terms and should thus be hidden. Also used when deciding which terms need to be removed from the filter option in order to make a room be no longer hidden. Only checks the room name, not the description.


    Parameters

    • Room: { Name: string }

      the room object to check

      • Name: string
    • Terms: string[]

      list of terms to check

    Returns boolean

    • true if room matches, false otherwise