aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2016-11-12 17:34:51 +0100
committerChristian Schneppe <christian@pix-art.de>2016-11-12 17:34:51 +0100
commit5edfff79f21c4003b08dc0d1a436c830303f4d91 (patch)
tree42760096910eab9e15cb99891a059ef31b1924eb
parent7a54e950278d63f2ec3945cab0b0efa5c5e9bdb1 (diff)
make message correction also working for single chats again
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConversationFragment.java8
1 files changed, 6 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 7cdbad31a..66e42060b 100644
--- a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
+++ b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
@@ -568,9 +568,13 @@ 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()
- && m.getConversation().getMucOptions().nonanonymous()) {
+ && conversation.getMode() == Conversation.MODE_SINGLE)
+ || (relevantForCorrection.getType() == Message.TYPE_TEXT
+ && relevantForCorrection.isLastCorrectableMessage()
+ && conversation.getMode() == Conversation.MODE_MULTI
+ && m.getConversation().getMucOptions().nonanonymous())) {
correctMessage.setVisible(true);
}
if (treatAsFile || (GeoHelper.isGeoUri(m.getBody()))) {