Don't handle error message stanzas as normal messages
This commit is contained in:
parent
52e116ee44
commit
babe987dcb
|
@ -21,9 +21,11 @@ namespace Xmpp {
|
||||||
|
|
||||||
public async void received_message_stanza_async(XmppStream stream, StanzaNode node) {
|
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);
|
MessageStanza message = new MessageStanza.from_stanza(node, stream.get_flag(Bind.Flag.IDENTITY).my_jid);
|
||||||
|
if (!message.is_error()) {
|
||||||
yield received_pipeline.run(stream, message);
|
yield received_pipeline.run(stream, message);
|
||||||
received_message(stream, message);
|
received_message(stream, message);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void received_message_stanza(XmppStream stream, StanzaNode node) {
|
private void received_message_stanza(XmppStream stream, StanzaNode node) {
|
||||||
received_message_stanza_async.begin(stream, node);
|
received_message_stanza_async.begin(stream, node);
|
||||||
|
|
Loading…
Reference in a new issue