aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service/muc_manager.vala
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-08-16 17:58:04 +0200
committerfiaxh <git@mx.ax.lt>2017-08-17 01:37:15 +0200
commitbff6885a6bb1a5a73d4c0b55294932231f242760 (patch)
tree727ae6057b5c2fc2ef45bd840d12b5ec2afb1c15 /libdino/src/service/muc_manager.vala
parentfb36ea055301b6db513a31acde30f315e2c0fd68 (diff)
downloaddino-bff6885a6bb1a5a73d4c0b55294932231f242760.tar.gz
dino-bff6885a6bb1a5a73d4c0b55294932231f242760.zip
fixup 4aee957 (request history since last known messages)
Diffstat (limited to 'libdino/src/service/muc_manager.vala')
-rw-r--r--libdino/src/service/muc_manager.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdino/src/service/muc_manager.vala b/libdino/src/service/muc_manager.vala
index 779783cc..ea261300 100644
--- a/libdino/src/service/muc_manager.vala
+++ b/libdino/src/service/muc_manager.vala
@@ -36,11 +36,11 @@ public class MucManager : StreamInteractionModule, Object {
string nick_ = nick ?? account.bare_jid.localpart ?? account.bare_jid.domainpart;
set_autojoin(stream, jid, nick_, password);
- string history_since = null;
+ DateTime? history_since = null;
Conversation? conversation = stream_interactor.get_module(ConversationManager.IDENTITY).get_conversation(jid, account);
if (conversation != null) {
Entities.Message? last_message = stream_interactor.get_module(MessageStorage.IDENTITY).get_last_message(conversation);
- if (last_message != null) history_since = last_message.time.to_string();
+ if (last_message != null) history_since = last_message.time;
}
stream.get_module(Xep.Muc.Module.IDENTITY).enter(stream, jid.bare_jid.to_string(), nick_, password, history_since);