~nicoco/slidge

7f7b1b1b1dde079531b682e564fc5a69f52eda1f — nicoco 5 months ago 55b3031
fix: fallback to component name for entity disco if "NotImplemented"

Turns out bool(NotImplemented) is True
1 files changed, 2 insertions(+), 0 deletions(-)

M slidge/core/mixins/disco.py
M slidge/core/mixins/disco.py => slidge/core/mixins/disco.py +2 -0
@@ 18,6 18,8 @@ class BaseDiscoMixin(Base):
        self.__caps_cache: Optional[str] = None

    def _get_disco_name(self):
        if self.DISCO_NAME is NotImplemented:
            return self.xmpp.COMPONENT_NAME
        return self.DISCO_NAME or self.xmpp.COMPONENT_NAME

    def features(self):