From 9c84a49f331f726ccc0ba5bc08dcfbbe3b43b99c Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 6 Sep 2023 21:26:55 -0500 Subject: [PATCH] When moderating a group, moderate all messages in the group --- .../eu/siacs/conversations/ui/ConversationFragment.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java index 4c347a953..e1a141f89 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java @@ -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; -- 2.45.2