Actually fix profile room ID lookup

matrix-profile-room-messages
Jason Robinson 2020-12-27 01:55:55 +02:00
rodzic 8797a08c02
commit ccd975ce46
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -44,7 +44,7 @@ class MatrixEntityMixin(BaseEntity):
def get_profile_room_id(self): def get_profile_room_id(self):
# TODO: we should cache these. # TODO: we should cache these.
doc, status, error = fetch_document( doc, status, error = fetch_document(
url=f"{self.get_endpoint()}/directory/room/{self.profile_room_alias}", url=f"{self.get_endpoint()}/directory/room/{self.profile_room_alias_url_safe}",
extra_headers=appservice_auth_header(), extra_headers=appservice_auth_header(),
) )
if status == 200: if status == 200: