allow corrections in all mucs

This commit is contained in:
Daniel Gultsch 2019-02-07 18:11:07 +01:00
parent ad64058d25
commit b648c482f3
1 changed files with 1 additions and 2 deletions

View File

@ -1078,8 +1078,7 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
&& relevantForCorrection.getType() == Message.TYPE_TEXT && relevantForCorrection.getType() == Message.TYPE_TEXT
&& !m.isGeoUri() && !m.isGeoUri()
&& relevantForCorrection.isLastCorrectableMessage() && relevantForCorrection.isLastCorrectableMessage()
&& m.getConversation() instanceof Conversation && m.getConversation() instanceof Conversation) {
&& (((Conversation) m.getConversation()).getMucOptions().nonanonymous() || m.getConversation().getMode() == Conversation.MODE_SINGLE)) {
correctMessage.setVisible(true); correctMessage.setVisible(true);
} }
if ((m.isFileOrImage() && !deleted && !receiving) || (m.getType() == Message.TYPE_TEXT && !m.treatAsDownloadable())) { if ((m.isFileOrImage() && !deleted && !receiving) || (m.getType() == Message.TYPE_TEXT && !m.treatAsDownloadable())) {