~singpolyma/cheogram-android

a6b6a23fe0f0a7529206434f2ca20a4302e5b42a — Stephen Paul Weber 11 months ago b105b0b
Fix @here for multiline message
1 files changed, 2 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 +2 -1
@@ 95,6 95,7 @@ import java.util.Map;
import java.util.Set;
import java.util.UUID;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.regex.Pattern;

import eu.siacs.conversations.Config;
import eu.siacs.conversations.R;


@@ 899,7 900,7 @@ public class ConversationFragment extends XmppFragment
        final Message message;
        if (conversation.getCorrectingMessage() == null) {
            boolean attention = false;
            if (body.matches("\\A@here\\s.*")) {
            if (Pattern.compile("\\A@here\\s.*").matcher(body).find()) {
                attention = true;
                body = body.replaceFirst("\\A@here\\s+", "");
            }