aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/xmpp/MessagePacket.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/gultsch/chat/xmpp/MessagePacket.java')
-rw-r--r--src/de/gultsch/chat/xmpp/MessagePacket.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/de/gultsch/chat/xmpp/MessagePacket.java b/src/de/gultsch/chat/xmpp/MessagePacket.java
index 5da76152..0d4d07d7 100644
--- a/src/de/gultsch/chat/xmpp/MessagePacket.java
+++ b/src/de/gultsch/chat/xmpp/MessagePacket.java
@@ -42,6 +42,7 @@ public class MessagePacket extends Element {
}
public void setBody(String text) {
+ this.children.remove(findChild("body"));
Element body = new Element("body");
body.setContent(text);
this.children.add(body);