aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service/conversation_manager.vala
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-08-18 00:46:40 +0200
committerfiaxh <git@mx.ax.lt>2017-08-19 00:31:44 +0200
commitdff8e08669996936cb58884c71b5ecd6ad7b1f76 (patch)
tree1bed7be48a042ca788f466a149ab0f434a53c34f /libdino/src/service/conversation_manager.vala
parent299f52df3af8bc7dafcd9a5a6e12d31042734357 (diff)
downloaddino-dff8e08669996936cb58884c71b5ecd6ad7b1f76.tar.gz
dino-dff8e08669996936cb58884c71b5ecd6ad7b1f76.zip
MAM fixes
- don't send first request for timestamp -60 - only open conversation for messages within last 24h - always show latest message in conversation tabs
Diffstat (limited to 'libdino/src/service/conversation_manager.vala')
-rw-r--r--libdino/src/service/conversation_manager.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdino/src/service/conversation_manager.vala b/libdino/src/service/conversation_manager.vala
index 6e58ba8a..81d846e0 100644
--- a/libdino/src/service/conversation_manager.vala
+++ b/libdino/src/service/conversation_manager.vala
@@ -27,7 +27,7 @@ public class ConversationManager : StreamInteractionModule, Object {
stream_interactor.add_module(this);
stream_interactor.account_added.connect(on_account_added);
stream_interactor.get_module(MucManager.IDENTITY).joined.connect(on_groupchat_joined);
- stream_interactor.get_module(MessageProcessor.IDENTITY).pre_message_received.connect(on_message_received);
+ stream_interactor.get_module(MessageProcessor.IDENTITY).message_received.connect(on_message_received);
stream_interactor.get_module(MessageProcessor.IDENTITY).message_sent.connect(on_message_sent);
}
@@ -107,7 +107,7 @@ public class ConversationManager : StreamInteractionModule, Object {
}
}
- private void on_message_received(Entities.Message message, Xmpp.Message.Stanza message_stanza, Conversation conversation) {
+ private void on_message_received(Entities.Message message, Conversation conversation) {
conversation.last_active = message.time;
start_conversation(conversation);
}
@@ -129,4 +129,4 @@ public class ConversationManager : StreamInteractionModule, Object {
}
}
-} \ No newline at end of file
+}