mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-22 04:55:29 +03:00
hide actions for federated rooms
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
4cf0fd20f2
commit
5fead79743
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue