hide actions for federated rooms

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2024-03-20 14:54:13 +01:00
parent 4cf0fd20f2
commit 5fead79743
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B

View file

@ -73,6 +73,15 @@ class AttachmentDialog(val activity: Activity, var chatActivity: ChatActivity) :
} }
private fun initItemsVisibility() { private fun initItemsVisibility() {
if (!chatActivity.currentConversation!!.remoteServer.isNullOrEmpty()) {
dialogAttachmentBinding.menuAttachContact.visibility = View.GONE
dialogAttachmentBinding.menuShareLocation.visibility = View.GONE
dialogAttachmentBinding.menuAttachPictureFromCam.visibility = View.GONE
dialogAttachmentBinding.menuAttachVideoFromCam.visibility = View.GONE
dialogAttachmentBinding.menuAttachFileFromLocal.visibility = View.GONE
dialogAttachmentBinding.menuAttachFileFromCloud.visibility = View.GONE
}
if (!CapabilitiesUtil.hasSpreedFeatureCapability( if (!CapabilitiesUtil.hasSpreedFeatureCapability(
chatActivity.spreedCapabilities, chatActivity.spreedCapabilities,
SpreedFeatures.GEO_LOCATION_SHARING SpreedFeatures.GEO_LOCATION_SHARING