mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
Make some of Mjolnir's banlist handling methods private
This commit is contained in:
parent
4bc33ea0af
commit
9fc1016eb2
@ -614,7 +614,7 @@ export class Mjolnir {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async buildWatchedBanLists() {
|
private async buildWatchedBanLists() {
|
||||||
this.banLists = [];
|
this.banLists = [];
|
||||||
const joinedRooms = await this.client.getJoinedRooms();
|
const joinedRooms = await this.client.getJoinedRooms();
|
||||||
|
|
||||||
@ -767,7 +767,7 @@ export class Mjolnir {
|
|||||||
* @param banList The `BanList` which we will check for changes and apply them to all protected rooms.
|
* @param banList The `BanList` which we will check for changes and apply them to all protected rooms.
|
||||||
* @returns When all of the protected rooms have been updated.
|
* @returns When all of the protected rooms have been updated.
|
||||||
*/
|
*/
|
||||||
public async syncWithBanList(banList: BanList): Promise<void> {
|
private async syncWithBanList(banList: BanList): Promise<void> {
|
||||||
const changes = await banList.updateList();
|
const changes = await banList.updateList();
|
||||||
|
|
||||||
let hadErrors = false;
|
let hadErrors = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user