aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2015-06-30 13:01:04 +0200
committerDaniel Gultsch <daniel@gultsch.de>2015-06-30 13:01:04 +0200
commit5b42b392a162efb1b503ec2f052bddf34b3bbcf0 (patch)
tree9b4909526aa29a502ebac48b6a7b74aeb84fc9af /src/main/java/eu
parent0030bbf472910c3ce421c3ba90d91b8c5f00102b (diff)
always show copy original url in context menu when url is available
Diffstat (limited to 'src/main/java/eu')
-rw-r--r--src/main/java/eu/siacs/conversations/ui/ConversationFragment.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java
index 419e4e52..f7022ee5 100644
--- a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java
+++ b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java
@@ -452,8 +452,7 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
if (m.getStatus() != Message.STATUS_SEND_FAILED) {
sendAgain.setVisible(false);
}
- if (((m.getType() != Message.TYPE_IMAGE && m.getDownloadable() == null)
- || m.getImageParams().url == null) && !GeoHelper.isGeoUri(m.getBody())) {
+ if (!m.hasFileOnRemoteHost() && !GeoHelper.isGeoUri(m.getBody())) {
copyUrl.setVisible(false);
}
if (m.getType() != Message.TYPE_TEXT