equal
deleted
inserted
replaced
78 end |
78 end |
79 |
79 |
80 local stream_sess = { notopen = true }; |
80 local stream_sess = { notopen = true }; |
81 local stream = new_stream(stream_sess, { handlestanza = cb, stream_ns = "jabber:client"}); |
81 local stream = new_stream(stream_sess, { handlestanza = cb, stream_ns = "jabber:client"}); |
82 local dates = dm.list_load(username, module.host, self.store) or empty; |
82 local dates = dm.list_load(username, module.host, self.store) or empty; |
83 stream:feed(st.stanza("stream", { xmlns = "jabber:client" }):top_tag()); |
|
84 local function reset_stream() |
83 local function reset_stream() |
85 stream:reset(); |
84 stream:reset(); |
86 stream_sess.notopen = true; |
85 stream_sess.notopen = true; |
87 stream:feed(st.stanza("stream", { xmlns = "jabber:client" }):top_tag()); |
86 stream:feed(st.stanza("stream", { xmlns = "jabber:client" }):top_tag()); |
88 stream_sess.notopen = nil; |
87 stream_sess.notopen = nil; |