Software /
code /
prosody
Diff
util/xmppstream.lua @ 11358:ebbf8dca33d2
util.xmppstream: Ensure stream 'id' is always present (fix #1626)
Backout c2d144d3f8dd
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 03 Feb 2021 16:14:43 +0100 |
parent | 10093:1266a63ba567 |
child | 11516:83822be7704d |
line wrap: on
line diff
--- a/util/xmppstream.lua Tue Feb 02 22:16:20 2021 +0100 +++ b/util/xmppstream.lua Wed Feb 03 16:14:43 2021 +0100 @@ -262,7 +262,7 @@ ["xml:lang"] = "en", xmlns = stream_callbacks.default_ns, version = session.version and (session.version > 0 and "1.0" or nil), - id = session.streamid, + id = session.streamid or "", from = from or session.host, to = to, }; if session.stream_attrs then