Cannot correct other's messages

(cherry picked from commit 7a6c2195033d56bf46541177c57277856b20b886)
This commit is contained in:
Stephen Paul Weber 2024-09-30 15:32:21 -05:00 committed by Arne
parent 2f68183dbe
commit 17d57e34d2

View file

@ -2028,6 +2028,7 @@ public class ConversationFragment extends XmppFragment
}
if (!showError
&& relevantForCorrection.getType() == Message.TYPE_TEXT
&& relevantForCorrection.isEditable()
&& !m.isGeoUri()
&& relevantForCorrection.isEditable()
&& m.getConversation() instanceof Conversation) {
@ -2038,10 +2039,6 @@ public class ConversationFragment extends XmppFragment
correctMessage.setVisible(true);
retractMessage.setVisible(true);
}
if (relevantForCorrection.getReactions() != null) {
correctMessage.setVisible(false);
retractMessage.setVisible(true);
}
if (conversation.getMode() == Conversation.MODE_MULTI && m.getServerMsgId() != null && m.getModerated() == null && conversation.getMucOptions().getSelf().getRole().ranks(MucOptions.Role.MODERATOR) && conversation.getMucOptions().hasFeature("urn:xmpp:message-moderate:0")) {
moderateMessage.setVisible(true);
}