is Permalink Supported
abstract fun isPermalinkSupported(supportedHosts: Array<String>, url: String): Boolean
Content copied to clipboard
Check if the url is a permalink. It must be a matrix.to link or a link with host provided by the string-array permalink_supported_hosts
in the config file
Return
true when url is a permalink
Parameters
supported Hosts
the list of hosts supported for permalinks
url
the link to check, Ex: "https://matrix.to/#/@benoit:matrix.org"