syncing all room power levels
This commit is contained in:
parent
a8fab062a4
commit
f0ff89161a
2 changed files with 7 additions and 4 deletions
|
@ -63,9 +63,8 @@ async function channelToKState(channel, guild) {
|
||||||
assert.ok(typeof spaceID === "string")
|
assert.ok(typeof spaceID === "string")
|
||||||
|
|
||||||
const row = db.prepare("SELECT nick, custom_avatar FROM channel_room WHERE channel_id = ?").get(channel.id)
|
const row = db.prepare("SELECT nick, custom_avatar FROM channel_room WHERE channel_id = ?").get(channel.id)
|
||||||
assert(row)
|
const customName = row?.nick
|
||||||
const customName = row.nick
|
const customAvatar = row?.custom_avatar
|
||||||
const customAvatar = row.custom_avatar
|
|
||||||
const [convertedName, convertedTopic] = convertNameAndTopic(channel, guild, customName)
|
const [convertedName, convertedTopic] = convertNameAndTopic(channel, guild, customName)
|
||||||
|
|
||||||
const avatarEventContent = {}
|
const avatarEventContent = {}
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
// @ts-check
|
// @ts-check
|
||||||
|
|
||||||
const fs = require("fs")
|
const fs = require("fs")
|
||||||
|
const assert = require("assert").strict
|
||||||
const yaml = require("js-yaml")
|
const yaml = require("js-yaml")
|
||||||
|
|
||||||
/** @ts-ignore @type {import("../types").AppServiceRegistrationConfig} */
|
/** @ts-ignore @type {import("../types").AppServiceRegistrationConfig} */
|
||||||
const reg = yaml.load(fs.readFileSync("registration.yaml", "utf8"))
|
const reg = yaml.load(fs.readFileSync("registration.yaml", "utf8"))
|
||||||
|
assert(reg.ooye.max_file_size)
|
||||||
|
assert(reg.ooye.namespace_prefix)
|
||||||
|
assert(reg.ooye.server_name)
|
||||||
module.exports = reg
|
module.exports = reg
|
Loading…
Reference in a new issue