aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/services/XmppConnectionService.java
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-06-26 16:42:24 +0200
committeriNPUTmice <daniel@gultsch.de>2014-06-26 16:42:24 +0200
commit3a57f6df897202010e1de242445b0f65763946d2 (patch)
treed39f982311baeee07b2216285b71e5b2c46999f3 /src/eu/siacs/conversations/services/XmppConnectionService.java
parent3bb585c020f6b21e41de7ce6d8ee9cb0675a9b54 (diff)
faulty otr messages now generate an error
Diffstat (limited to 'src/eu/siacs/conversations/services/XmppConnectionService.java')
-rw-r--r--src/eu/siacs/conversations/services/XmppConnectionService.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/eu/siacs/conversations/services/XmppConnectionService.java b/src/eu/siacs/conversations/services/XmppConnectionService.java
index f4691fab..b7c32db2 100644
--- a/src/eu/siacs/conversations/services/XmppConnectionService.java
+++ b/src/eu/siacs/conversations/services/XmppConnectionService.java
@@ -1475,8 +1475,10 @@ public class XmppConnectionService extends Service {
return this.pm;
}
- public void replyWithError(Account account, MessagePacket packet) {
- // TODO Auto-generated method stub
-
+ public void replyWithNotAcceptable(Account account, MessagePacket packet) {
+ if (account.getStatus() == Account.STATUS_ONLINE) {
+ MessagePacket error = this.mMessageGenerator.generateNotAcceptable(packet);
+ account.getXmppConnection().sendMessagePacket(error);
+ }
}
}