From 7411f4a9e181f9938c9559a3926c08114db29cfb Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 14 Dec 2023 12:43:59 +0000 Subject: [PATCH] prosodyclient: Use empty name if none provided by the server In parallel, I have updated the server to use the group name for groups with no name (the MUCs with no name are typically the default auto-created group MUC). --- snikket_web/prosodyclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snikket_web/prosodyclient.py b/snikket_web/prosodyclient.py index f070279..70c40d5 100644 --- a/snikket_web/prosodyclient.py +++ b/snikket_web/prosodyclient.py @@ -190,7 +190,7 @@ class AdminGroupChatInfo: return cls( id_=data["id"], jid=data["jid"], - name=data["name"], + name=data.get("name", ""), )