Merge pull request #168 from snikket-im/fix/rc2-runtime-errors

Fix a couple of runtime errors
This commit is contained in:
Matthew Wild
2023-12-14 15:35:04 +00:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ def flatten(a: typing.Iterable, levels: int = 1) -> typing.Iterable:
def circle_name(c: typing.Any) -> str:
if c.id_ == "default" and c.name == "default":
return _("Main")
return _l("Main")
return c.name

View File

@@ -190,7 +190,7 @@ class AdminGroupChatInfo:
return cls(
id_=data["id"],
jid=data["jid"],
name=data["name"],
name=data.get("name", ""),
)