# HG changeset patch # User Kim Alvefur # Date 1521228755 -3600 # Node ID 8858cef9ed2701f78831a08fc071e04da57ee98d # Parent 4bb3a4b726c96840561224436675a656b0e96de4 mod_conversejs: Pass current domain as 'default_domain' diff -r 4bb3a4b726c9 -r 8858cef9ed27 mod_conversejs/mod_conversejs.lua --- a/mod_conversejs/mod_conversejs.lua Thu Mar 15 23:44:35 2018 +0100 +++ b/mod_conversejs/mod_conversejs.lua Fri Mar 16 20:32:35 2018 +0100 @@ -27,6 +27,7 @@ websocket_url = has_ws and module:http_url("websocket","xmpp-websocket"):gsub("^http", "ws") or nil; authentication = module:get_option_string("authentication") == "anonymous" and "anonymous" or "login"; jid = module.host; + default_domain = module.host; }; local view_mode_css = "converse";