From 41e4648d277d560ffb6facd94e9d933a62200f12 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 3 Feb 2021 16:14:43 +0100 Subject: util.xmppstream: Ensure stream 'id' is always present (fix #1626) Backout c2d144d3f8dd --- util/xmppstream.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/xmppstream.lua b/util/xmppstream.lua index 6aa1def3..bab0f253 100644 --- a/util/xmppstream.lua +++ b/util/xmppstream.lua @@ -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 -- cgit v1.2.3