aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/message/module.vala
diff options
context:
space:
mode:
authorSamuel Hand <sdhand@users.noreply.github.com>2018-07-07 12:12:31 +0100
committerGitHub <noreply@github.com>2018-07-07 12:12:31 +0100
commitf3c82094cd5d232226907f61f6d58402f99e10db (patch)
tree062a58e2bb830a004b948c35854a2bcb5d79cb27 /xmpp-vala/src/module/message/module.vala
parent7da735b844da1b80a11135d22b011cabf54ad0fe (diff)
parent3a00177a51e48d6bafc1e67bab26bc510e6400d8 (diff)
downloaddino-f3c82094cd5d232226907f61f6d58402f99e10db.tar.gz
dino-f3c82094cd5d232226907f61f6d58402f99e10db.zip
Merge branch 'master' into omemo-trust-ui
Diffstat (limited to 'xmpp-vala/src/module/message/module.vala')
-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) {