diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-09-11 13:18:29 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-09-11 13:18:29 +0200 |
commit | fef41ba2a219f15bedc6d1ed45570e2764869684 (patch) | |
tree | 53e860c471dee8592bb197c9a5c0558cf6051006 /src/eu/siacs/conversations/xmpp/stanzas | |
parent | 7fd4f13ff8ff5822a4d24c79fdff92bd5e8cdb47 (diff) |
pare body in type=normal messages as well
Diffstat (limited to 'src/eu/siacs/conversations/xmpp/stanzas')
-rw-r--r-- | src/eu/siacs/conversations/xmpp/stanzas/MessagePacket.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/eu/siacs/conversations/xmpp/stanzas/MessagePacket.java b/src/eu/siacs/conversations/xmpp/stanzas/MessagePacket.java index 386d9dc8..4e7b532b 100644 --- a/src/eu/siacs/conversations/xmpp/stanzas/MessagePacket.java +++ b/src/eu/siacs/conversations/xmpp/stanzas/MessagePacket.java @@ -4,7 +4,6 @@ import eu.siacs.conversations.xml.Element; public class MessagePacket extends AbstractStanza { public static final int TYPE_CHAT = 0; - public static final int TYPE_UNKNOWN = 1; public static final int TYPE_NORMAL = 2; public static final int TYPE_GROUPCHAT = 3; public static final int TYPE_ERROR = 4; @@ -38,8 +37,6 @@ public class MessagePacket extends AbstractStanza { case TYPE_GROUPCHAT: this.setAttribute("type", "groupchat"); break; - case TYPE_UNKNOWN: - break; case TYPE_NORMAL: break; default: @@ -63,7 +60,7 @@ public class MessagePacket extends AbstractStanza { } else if (type.equals("headline")) { return TYPE_HEADLINE; } else { - return TYPE_UNKNOWN; + return TYPE_NORMAL; } } } |