mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
Appease the linter
by actually making the code better
This commit is contained in:
parent
3a8167a57a
commit
6f238fc13f
@ -219,15 +219,14 @@ export class NebProxy {
|
|||||||
let newConfig = {rooms: {}};
|
let newConfig = {rooms: {}};
|
||||||
|
|
||||||
if (!this.neb.upstreamId) {
|
if (!this.neb.upstreamId) {
|
||||||
if (repoKeys.length === 0) {
|
|
||||||
const notifUser = await NebStore.getOrCreateNotificationUser(this.neb.id, "travisci", this.requestingUserId);
|
const notifUser = await NebStore.getOrCreateNotificationUser(this.neb.id, "travisci", this.requestingUserId);
|
||||||
|
const client = new NebClient(this.neb);
|
||||||
|
newConfig = await client.getServiceConfig(notifUser.serviceId); // So we don't accidentally clear other rooms
|
||||||
|
|
||||||
|
if (repoKeys.length === 0) {
|
||||||
const appserviceClient = new MatrixAppserviceClient(await AppserviceStore.getAppservice(this.neb.appserviceId));
|
const appserviceClient = new MatrixAppserviceClient(await AppserviceStore.getAppservice(this.neb.appserviceId));
|
||||||
await appserviceClient.leaveRoom(notifUser.appserviceUserId, roomId);
|
await appserviceClient.leaveRoom(notifUser.appserviceUserId, roomId);
|
||||||
}
|
}
|
||||||
|
|
||||||
const client = new NebClient(this.neb);
|
|
||||||
const notifUser = await NebStore.getOrCreateNotificationUser(this.neb.id, "travisci", this.requestingUserId);
|
|
||||||
newConfig = await client.getServiceConfig(notifUser.serviceId); // So we don't accidentally clear other rooms
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset the current room's configuration so we don't keep artifacts.
|
// Reset the current room's configuration so we don't keep artifacts.
|
||||||
|
Loading…
Reference in New Issue
Block a user