aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module
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 /xmpp-vala/src/module
parentfb36ea055301b6db513a31acde30f315e2c0fd68 (diff)
downloaddino-bff6885a6bb1a5a73d4c0b55294932231f242760.tar.gz
dino-bff6885a6bb1a5a73d4c0b55294932231f242760.zip
fixup 4aee957 (request history since last known messages)
Diffstat (limited to 'xmpp-vala/src/module')
-rw-r--r--xmpp-vala/src/module/xep/0045_muc/module.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmpp-vala/src/module/xep/0045_muc/module.vala b/xmpp-vala/src/module/xep/0045_muc/module.vala
index fd4e8ba5..98fda1a1 100644
--- a/xmpp-vala/src/module/xep/0045_muc/module.vala
+++ b/xmpp-vala/src/module/xep/0045_muc/module.vala
@@ -69,7 +69,7 @@ public class Module : XmppStreamModule {
public signal void self_removed_from_room(XmppStream stream, string jid, StatusCode code);
public signal void removed_from_room(XmppStream stream, string jid, StatusCode? code);
- public void enter(XmppStream stream, string bare_jid, string nick, string? password, string? history_since) {
+ public void enter(XmppStream stream, string bare_jid, string nick, string? password, DateTime? history_since) {
Presence.Stanza presence = new Presence.Stanza();
presence.to = bare_jid + "/" + nick;
StanzaNode x_node = new StanzaNode.build("x", NS_URI).add_self_xmlns();
@@ -78,7 +78,7 @@ public class Module : XmppStreamModule {
}
if (history_since != null) {
StanzaNode history_node = new StanzaNode.build("history", NS_URI);
- history_node.set_attribute("since", history_since);
+ history_node.set_attribute("since", DateTimeProfiles.to_datetime(history_since));
x_node.put_node(history_node);
}
presence.stanza.put_node(x_node);