forked from mirror/monocles_chat
Cannot correct other's messages
(cherry picked from commit 7a6c2195033d56bf46541177c57277856b20b886)
This commit is contained in:
parent
2f68183dbe
commit
17d57e34d2
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue