Software /
code /
prosody
Diff
util/adhoc.lua @ 11120:b2331f3dfeea
Merge 0.11->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 30 Sep 2020 09:50:33 +0100 |
parent | 10667:49312378ba1d |
child | 11352:e10567199f02 |
line wrap: on
line diff
--- a/util/adhoc.lua Thu Oct 01 15:08:58 2020 +0100 +++ b/util/adhoc.lua Wed Sep 30 09:50:33 2020 +0100 @@ -2,7 +2,7 @@ local function new_simple_form(form, result_handler) return function(self, data, state) - if state then + if state or data.form then if data.action == "cancel" then return { status = "canceled" }; end @@ -16,7 +16,7 @@ local function new_initial_data_form(form, initial_data, result_handler) return function(self, data, state) - if state then + if state or data.form then if data.action == "cancel" then return { status = "canceled" }; end