mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-10 06:14:10 +01:00
use CapabilitiesUtil for geo-location-sharing
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
0568ea6e72
commit
4cdd13c92e
@ -70,7 +70,9 @@ class AttachmentDialog(val activity: Activity, var chatController: ChatControlle
|
||||
String.format(it.getString(R.string.nc_upload_from_cloud), serverName)
|
||||
}
|
||||
|
||||
if (chatController.conversationUser?.hasSpreedFeatureCapability("geo-location-sharing") != true){
|
||||
if (!CapabilitiesUtil.hasSpreedFeatureCapability(
|
||||
chatController.conversationUser,
|
||||
"geo-location-sharing")){
|
||||
shareLocationItem?.visibility = View.GONE
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user