You've already forked snikket-web-portal
Merge pull request #168 from snikket-im/fix/rc2-runtime-errors
Fix a couple of runtime errors
This commit is contained in:
@@ -53,7 +53,7 @@ def flatten(a: typing.Iterable, levels: int = 1) -> typing.Iterable:
|
|||||||
|
|
||||||
def circle_name(c: typing.Any) -> str:
|
def circle_name(c: typing.Any) -> str:
|
||||||
if c.id_ == "default" and c.name == "default":
|
if c.id_ == "default" and c.name == "default":
|
||||||
return _("Main")
|
return _l("Main")
|
||||||
return c.name
|
return c.name
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ class AdminGroupChatInfo:
|
|||||||
return cls(
|
return cls(
|
||||||
id_=data["id"],
|
id_=data["id"],
|
||||||
jid=data["jid"],
|
jid=data["jid"],
|
||||||
name=data["name"],
|
name=data.get("name", ""),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user