diff options
author | iNPUTmice <daniel@gultsch.de> | 2015-03-21 16:07:17 +0100 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2015-03-21 16:07:17 +0100 |
commit | 99b2ef7e9d571dcfa386df4d0190ce626e657232 (patch) | |
tree | c3916fd5c3d9214ed26d29abbc618f7711e31d05 /src/main/java/eu/siacs/conversations/xmpp/stanzas | |
parent | 825278971e869012e71dedbbd0da2792c3182157 (diff) |
respond to unreadable OTR messages with error message. fixed #1021
Diffstat (limited to 'src/main/java/eu/siacs/conversations/xmpp/stanzas')
-rw-r--r-- | src/main/java/eu/siacs/conversations/xmpp/stanzas/MessagePacket.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/xmpp/stanzas/MessagePacket.java b/src/main/java/eu/siacs/conversations/xmpp/stanzas/MessagePacket.java index 61465ae0c..93aaa68cf 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/stanzas/MessagePacket.java +++ b/src/main/java/eu/siacs/conversations/xmpp/stanzas/MessagePacket.java @@ -39,6 +39,9 @@ public class MessagePacket extends AbstractStanza { break; case TYPE_NORMAL: break; + case TYPE_ERROR: + this.setAttribute("type","error"); + break; default: this.setAttribute("type", "chat"); break; |