aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/message
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2018-05-29 23:10:22 +0200
committerfiaxh <git@mx.ax.lt>2018-06-14 23:12:25 +0200
commitbabe987dcb5d2b52b163d90bdf7e3cd496edf421 (patch)
tree39cd23745e451660c7e3fcb6e7ff6f52bb9b9b8b /xmpp-vala/src/module/message
parent52e116ee44be1667660c08858a28fe8fda125f79 (diff)
downloaddino-babe987dcb5d2b52b163d90bdf7e3cd496edf421.tar.gz
dino-babe987dcb5d2b52b163d90bdf7e3cd496edf421.zip
Don't handle error message stanzas as normal messages
Diffstat (limited to 'xmpp-vala/src/module/message')
-rw-r--r--xmpp-vala/src/module/message/module.vala6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmpp-vala/src/module/message/module.vala b/xmpp-vala/src/module/message/module.vala
index 864b4f71..6db2dcb5 100644
--- a/xmpp-vala/src/module/message/module.vala
+++ b/xmpp-vala/src/module/message/module.vala
@@ -21,8 +21,10 @@ namespace Xmpp {
public async void received_message_stanza_async(XmppStream stream, StanzaNode node) {
MessageStanza message = new MessageStanza.from_stanza(node, stream.get_flag(Bind.Flag.IDENTITY).my_jid);
- yield received_pipeline.run(stream, message);
- received_message(stream, message);
+ if (!message.is_error()) {
+ yield received_pipeline.run(stream, message);
+ received_message(stream, message);
+ }
}
private void received_message_stanza(XmppStream stream, StanzaNode node) {