Replace "Probe::isProbable" with "Protocol::supportsProbe"

This commit is contained in:
Michael 2023-05-17 01:28:10 +00:00
parent a52c1cde9c
commit 2e46d64ea0
2 changed files with 10 additions and 5 deletions

View file

@ -315,7 +315,12 @@ class Protocol
*/
public static function supportsProbe($protocol): bool
{
if (in_array($protocol, self::NATIVE_SUPPORT)) {
// "Mail" can only be probed for a specific user in a specific condition, so we are ignoring it here.
if ($protocol == self::MAIL) {
return false;
}
if (in_array($protocol, array_merge(self::NATIVE_SUPPORT, [self::ZOT, self::PHANTOM]))) {
return true;
}