diff --git a/src/neb/NebProxy.ts b/src/neb/NebProxy.ts index f5e9137..555e332 100644 --- a/src/neb/NebProxy.ts +++ b/src/neb/NebProxy.ts @@ -134,8 +134,8 @@ export class NebProxy { currentConfig = await client.getServiceConfig(notifUser.serviceId); if (feedUrls.length === 0) { - const client = new MatrixAppserviceClient(await AppserviceStore.getAppservice(this.neb.appserviceId)); - await client.leaveRoom(notifUser.appserviceUserId, roomId); + const appserviceClient = new MatrixAppserviceClient(await AppserviceStore.getAppservice(this.neb.appserviceId)); + await appserviceClient.leaveRoom(notifUser.appserviceUserId, roomId); } }