From 869182d640e57802c36182a26a5853a244f41906 Mon Sep 17 00:00:00 2001 From: kosyak Date: Mon, 5 Aug 2024 23:28:54 +0200 Subject: [PATCH] add nick into reply fallback only for MUC --- src/main/java/eu/siacs/conversations/entities/Message.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/entities/Message.java b/src/main/java/eu/siacs/conversations/entities/Message.java index ccdc2ec2b..ba7dc1bdb 100644 --- a/src/main/java/eu/siacs/conversations/entities/Message.java +++ b/src/main/java/eu/siacs/conversations/entities/Message.java @@ -359,7 +359,7 @@ public class Message extends AbstractEntity implements AvatarService.Avatarable Message m; String name = getAvatarName(); - if (name != null && !name.isEmpty()) { + if (name != null && !name.isEmpty() && conversation != null && conversation.getMode() == Conversational.MODE_MULTI) { m = new Message(conversation, QuoteHelper.quote("<" + name + ">" + "\n" + MessageUtils.prepareQuote(this)) + "\n", ENCRYPTION_NONE); } else { m = new Message(conversation, QuoteHelper.quote(MessageUtils.prepareQuote(this)) + "\n", ENCRYPTION_NONE);