Changeset

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
parents 11357:8cb2a64b15da
children 11359:db146bf7b120
files util/xmppstream.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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