From bef414fc10e26bda7df171766e6bc1dd2c143f95 Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Mon, 9 Sep 2024 15:55:23 +0200 Subject: [PATCH] fix logic to show UnifiedSearch results when federation capability exists Signed-off-by: Marcel Hibbe --- app/src/main/java/com/nextcloud/talk/utils/CapabilitiesUtil.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/nextcloud/talk/utils/CapabilitiesUtil.kt b/app/src/main/java/com/nextcloud/talk/utils/CapabilitiesUtil.kt index 69d34c497..63e55c08d 100644 --- a/app/src/main/java/com/nextcloud/talk/utils/CapabilitiesUtil.kt +++ b/app/src/main/java/com/nextcloud/talk/utils/CapabilitiesUtil.kt @@ -161,7 +161,7 @@ object CapabilitiesUtil { } fun isUnifiedSearchAvailable(spreedCapabilities: SpreedCapability): Boolean { - if (hasSpreedFeatureCapability(spreedCapabilities, SpreedFeatures.FEDERATION_V1)) { + if (!hasSpreedFeatureCapability(spreedCapabilities, SpreedFeatures.FEDERATION_V1)) { return false } return hasSpreedFeatureCapability(spreedCapabilities, SpreedFeatures.UNIFIED_SEARCH)