core: minor style improvments

This commit is contained in:
Goffi 2019-03-27 21:15:25 +01:00
commit 1a958d8744

View file

@ -298,7 +298,7 @@ class XEP_0048(object):
)
xmlui.addText(data.get("name", ""))
xmlui.addJid(room_jid)
if data.get("autojoin", "false") == "true":
if C.bool(data.get("autojoin", C.BOOL_FALSE)):
xmlui.addText("autojoin")
else:
xmlui.addEmpty()