diff options
author | fiaxh <git@mx.ax.lt> | 2017-10-22 17:24:16 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-10-22 18:26:31 +0200 |
commit | 749edd21b905006557cef593c2ded9284fb19313 (patch) | |
tree | 6a0ecda5d255e61fb139ef9528af067300caa2ff /libdino/src | |
parent | 128a015d45031f2b064f3a8e4d6bb99579eefd60 (diff) | |
download | dino-749edd21b905006557cef593c2ded9284fb19313.tar.gz dino-749edd21b905006557cef593c2ded9284fb19313.zip |
Add oob tag to http-upload messages
fixes #166
Diffstat (limited to 'libdino/src')
-rw-r--r-- | libdino/src/service/message_processor.vala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libdino/src/service/message_processor.vala b/libdino/src/service/message_processor.vala index 3ba3320c..757a0e1f 100644 --- a/libdino/src/service/message_processor.vala +++ b/libdino/src/service/message_processor.vala @@ -11,7 +11,7 @@ public class MessageProcessor : StreamInteractionModule, Object { public signal void pre_message_received(Entities.Message message, Xmpp.Message.Stanza message_stanza, Conversation conversation); public signal void message_received(Entities.Message message, Conversation conversation); - public signal void out_message_created(Entities.Message message, Conversation conversation); + public signal void build_message_stanza(Entities.Message message, Xmpp.Message.Stanza message_stanza, Conversation conversation); public signal void pre_message_send(Entities.Message message, Xmpp.Message.Stanza message_stanza, Conversation conversation); public signal void message_sent(Entities.Message message, Conversation conversation); @@ -175,8 +175,6 @@ public class MessageProcessor : StreamInteractionModule, Object { } message.marked = Entities.Message.Marked.UNSENT; message.encryption = conversation.encryption; - - out_message_created(message, conversation); return message; } @@ -193,6 +191,7 @@ public class MessageProcessor : StreamInteractionModule, Object { } else { new_message.type_ = Xmpp.Message.Stanza.TYPE_CHAT; } + build_message_stanza(message, new_message, conversation); pre_message_send(message, new_message, conversation); if (message.marked == Entities.Message.Marked.UNSENT || message.marked == Entities.Message.Marked.WONTSEND) return; if (delayed) { |