maunium -> miscworks

This commit is contained in:
Andrew Ferrazzutti 2021-06-10 02:51:23 -04:00
parent 02cc6ce0e4
commit 1cf840e3d9
3 changed files with 5 additions and 5 deletions

View File

@ -45,7 +45,7 @@ appservice:
# Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty
# to leave display name/avatar as-is.
bot_displayname: LINE bridge bot
bot_avatar: mxc://maunium.net/VuvevQiMRlOxuBVMBNEZZrxi
bot_avatar: mxc://miscworks.net/uyHgFSLDDtATVGjtjWKwxrkK
# Community ID for bridged users (changes registration file) and rooms.
# Must be created manually.

View File

@ -563,7 +563,7 @@ class Portal(DBPortal, BasePortal):
@property
def bridge_info_state_key(self) -> str:
return f"net.maunium.line://line/{self.chat_id}"
return f"net.miscworks.line://line/{self.chat_id}"
@property
def bridge_info(self) -> Dict[str, Any]:

View File

@ -64,8 +64,8 @@ class ProvisioningAPI:
return None
for part in auth_parts:
part = part.strip()
if part.startswith("net.maunium.line.auth-"):
return part[len("net.maunium.line.auth-"):]
if part.startswith("net.miscworks.line.auth-"):
return part[len("net.miscworks.line.auth-"):]
return None
def check_token(self, request: web.Request) -> Awaitable['u.User']:
@ -107,7 +107,7 @@ class ProvisioningAPI:
if status.is_logged_in:
raise web.HTTPConflict(text='{"error": "Already logged in"}', headers=self._headers)
ws = web.WebSocketResponse(protocols=["net.maunium.line.login"])
ws = web.WebSocketResponse(protocols=["net.miscworks.line.login"])
await ws.prepare(request)
try:
async for url in user.client.login():