util.xmppstream: Ensure stream 'id' is always present (fix #1626)

Backout c2d144d3f8dd
This commit is contained in:
Kim Alvefur 2021-02-03 16:14:43 +01:00
parent f539be51b3
commit 1f7686a6bd

View file

@ -262,7 +262,7 @@ local function new(session, stream_callbacks, stanza_size_limit)
["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