Remove unused parameter
This commit is contained in:
parent
cce432aeee
commit
ac165845d7
1 changed files with 3 additions and 4 deletions
|
@ -428,8 +428,7 @@ async function messageToEvent(message, guild, options = {}, di) {
|
||||||
return {body, html}
|
return {body, html}
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: What was the scanMentions parameter supposed to activate? It's unused.
|
async function addTextEvent(body, html, msgtype) {
|
||||||
async function addTextEvent(body, html, msgtype, {scanMentions}) {
|
|
||||||
// Star * prefix for fallback edits
|
// Star * prefix for fallback edits
|
||||||
if (options.includeEditFallbackStar) {
|
if (options.includeEditFallbackStar) {
|
||||||
body = "* " + body
|
body = "* " + body
|
||||||
|
@ -530,7 +529,7 @@ async function messageToEvent(message, guild, options = {}, di) {
|
||||||
|
|
||||||
// Text content appears first
|
// Text content appears first
|
||||||
const {body, html} = await transformContent(message.content)
|
const {body, html} = await transformContent(message.content)
|
||||||
await addTextEvent(body, html, msgtype, {scanMentions: true})
|
await addTextEvent(body, html, msgtype)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Then attachments
|
// Then attachments
|
||||||
|
@ -612,7 +611,7 @@ async function messageToEvent(message, guild, options = {}, di) {
|
||||||
html = `<blockquote>${html}</blockquote>`
|
html = `<blockquote>${html}</blockquote>`
|
||||||
|
|
||||||
// Send as m.notice to apply the usual automated/subtle appearance, showing this wasn't actually typed by the person
|
// Send as m.notice to apply the usual automated/subtle appearance, showing this wasn't actually typed by the person
|
||||||
await addTextEvent(body, html, "m.notice", {scanMentions: false})
|
await addTextEvent(body, html, "m.notice")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Then stickers
|
// Then stickers
|
||||||
|
|
Loading…
Reference in a new issue