diff options
author | fiaxh <git@lightrise.org> | 2021-04-11 15:24:21 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2021-04-11 15:25:43 +0200 |
commit | 1b92a1f774e2e3692f2b202f1245a2afe6528b32 (patch) | |
tree | 2e4afc401cf516cbca065573c3d3cefe785665ad /libdino/src | |
parent | aeeda76c9252ab03c1b91c879e6d890801b0ba2e (diff) | |
download | dino-1b92a1f774e2e3692f2b202f1245a2afe6528b32.tar.gz dino-1b92a1f774e2e3692f2b202f1245a2afe6528b32.zip |
Fix processing of XEP-0184 delivery receipts
Diffstat (limited to 'libdino/src')
-rw-r--r-- | libdino/src/service/counterpart_interaction_manager.vala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libdino/src/service/counterpart_interaction_manager.vala b/libdino/src/service/counterpart_interaction_manager.vala index 5b9d1fff..03eb6c6f 100644 --- a/libdino/src/service/counterpart_interaction_manager.vala +++ b/libdino/src/service/counterpart_interaction_manager.vala @@ -67,8 +67,8 @@ public class CounterpartInteractionManager : StreamInteractionModule, Object { stream_interactor.module_manager.get_module(account, Xep.ChatMarkers.Module.IDENTITY).marker_received.connect( (stream, jid, marker, id, message_stanza) => { on_chat_marker_received.begin(account, jid, marker, id, message_stanza); }); - stream_interactor.module_manager.get_module(account, Xep.MessageDeliveryReceipts.Module.IDENTITY).receipt_received.connect((stream, jid, id) => { - on_receipt_received(account, jid, id); + stream_interactor.module_manager.get_module(account, Xep.MessageDeliveryReceipts.Module.IDENTITY).receipt_received.connect((stream, jid, id, stanza) => { + on_receipt_received(account, jid, id, stanza); }); stream_interactor.module_manager.get_module(account, Xep.ChatStateNotifications.Module.IDENTITY).chat_state_received.connect((stream, jid, state, stanza) => { on_chat_state_received.begin(account, jid, state, stanza); @@ -198,8 +198,8 @@ public class CounterpartInteractionManager : StreamInteractionModule, Object { } } - private void on_receipt_received(Account account, Jid jid, string id) { - Conversation? conversation = stream_interactor.get_module(ConversationManager.IDENTITY).get_conversation(jid, account, Conversation.Type.CHAT); + private void on_receipt_received(Account account, Jid jid, string id, MessageStanza stanza) { + Conversation? conversation = stream_interactor.get_module(ConversationManager.IDENTITY).approx_conversation_for_stanza(stanza.from, stanza.to, account, stanza.type_); if (conversation == null) return; handle_chat_marker(conversation, jid,Xep.ChatMarkers.MARKER_RECEIVED, id); } |