diff options
author | Christian Schneppe <christian@pix-art.de> | 2016-11-12 18:27:47 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-11-12 18:27:47 +0100 |
commit | 30fd34360edcf2a60de21e620cfb27afaa65eecc (patch) | |
tree | bc1f495b195758cccdf65b31d57fbef50e17d8b5 /src | |
parent | ef7bcb1b07e3edf36b463aae4cc953ab29d498b0 (diff) |
don't allow message correction for xmpp or geo uris
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ConversationFragment.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java index 251e189c9..c71be325a 100644 --- a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java +++ b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java @@ -570,13 +570,14 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa if (m.getEncryption() == Message.ENCRYPTION_DECRYPTION_FAILED) { retryDecryption.setVisible(true); } - if ((relevantForCorrection.getType() == Message.TYPE_TEXT + if (((relevantForCorrection.getType() == Message.TYPE_TEXT && relevantForCorrection.isLastCorrectableMessage() && conversation.getMode() == Conversation.MODE_SINGLE) || (relevantForCorrection.getType() == Message.TYPE_TEXT && relevantForCorrection.isLastCorrectableMessage() && conversation.getMode() == Conversation.MODE_MULTI - && m.getConversation().getMucOptions().nonanonymous())) { + && m.getConversation().getMucOptions().nonanonymous())) + && !(GeoHelper.isGeoUri(m.getBody()) || XmppUri.isXmppUri(m.getBody()))) { correctMessage.setVisible(true); } if (treatAsFile |