diff --git a/sat/plugins/plugin_xep_0050.py b/sat/plugins/plugin_xep_0050.py index cbc08159..64bf390f 100644 --- a/sat/plugins/plugin_xep_0050.py +++ b/sat/plugins/plugin_xep_0050.py @@ -483,7 +483,14 @@ class XEP_0050(object): ) if session_id is None: - return xml_tools.dataFormEltResult2XMLUI(data_elt) + xmlui = xml_tools.dataFormEltResult2XMLUI(data_elt) + if notes: + for level, note in notes: + if level != "info": + note = f"[{level}] {note}" + xmlui.addWidget("text", note) + return xmlui + form = data_form.Form.fromElement(data_elt) # we add any present note to the instructions form.instructions.extend(self._mergeNotes(notes))