~singpolyma/cheogram-android

9c84a49f331f726ccc0ba5bc08dcfbbe3b43b99c — Stephen Paul Weber 1 year, 9 days ago 6a709a1
When moderating a group, moderate all messages in the group
1 files changed, 5 insertions(+), 1 deletions(-)

M src/main/java/eu/siacs/conversations/ui/ConversationFragment.java
M src/main/java/eu/siacs/conversations/ui/ConversationFragment.java => src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +5 -1
@@ 1767,7 1767,11 @@ public class ConversationFragment extends XmppFragment
                return true;
            case R.id.moderate_message:
                activity.quickEdit("Spam", (reason) -> {
                    activity.xmppConnectionService.moderateMessage(conversation.getAccount(), selectedMessage, reason);
                    Message message = selectedMessage;
                    do {
                        activity.xmppConnectionService.moderateMessage(conversation.getAccount(), message, reason);
                        message = message.mergeable(message.next()) ? message.next() : null;
                    } while (message != null);
                    return null;
                }, R.string.moderate_reason, false, false, true);
                return true;