aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service/message_processor.vala
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2018-03-07 17:24:57 +0100
committerfiaxh <git@mx.ax.lt>2018-03-10 20:01:22 +0100
commit81310dff2e712cf7ddbce7c4717cd5a77170c79a (patch)
treea7d441a97856f3d0db192a2bebbda15a88bc87ee /libdino/src/service/message_processor.vala
parent0968da1ff76e7443c2590f4182087bb501d9c8f5 (diff)
downloaddino-81310dff2e712cf7ddbce7c4717cd5a77170c79a.tar.gz
dino-81310dff2e712cf7ddbce7c4717cd5a77170c79a.zip
Handle multiple chat state notifications per bare jid
fixes #117
Diffstat (limited to 'libdino/src/service/message_processor.vala')
-rw-r--r--libdino/src/service/message_processor.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdino/src/service/message_processor.vala b/libdino/src/service/message_processor.vala
index 9a20cf3f..f2f539bb 100644
--- a/libdino/src/service/message_processor.vala
+++ b/libdino/src/service/message_processor.vala
@@ -76,7 +76,7 @@ public class MessageProcessor : StreamInteractionModule, Object {
private async void on_message_received(Account account, Xmpp.MessageStanza message_stanza) {
if (message_stanza.body == null) return;
- Entities.Message message = yield create_in_message(account, message_stanza);
+ Entities.Message message = yield parse_message_stanza(account, message_stanza);
Conversation? conversation = stream_interactor.get_module(ConversationManager.IDENTITY).get_conversation_for_message(message);
if (conversation != null) {
@@ -90,7 +90,7 @@ public class MessageProcessor : StreamInteractionModule, Object {
}
}
- private async Entities.Message create_in_message(Account account, Xmpp.MessageStanza message) {
+ public async Entities.Message parse_message_stanza(Account account, Xmpp.MessageStanza message) {
Entities.Message new_message = new Entities.Message(message.body);
new_message.account = account;
new_message.stanza_id = message.id;