Update DisplayLargeMessages.plugin.js

This commit is contained in:
Mirco Wittrien 2020-06-22 10:31:47 +02:00
parent 4c43e5d02b
commit 785b6b4204
1 changed files with 31 additions and 29 deletions

View File

@ -219,7 +219,8 @@ var DisplayLargeMessages = (_ => {
} }
processAttachment (e) { processAttachment (e) {
if (e.instance.props.filename == "message.txt" && settings.onDemand || amounts.maxFileSize && (amounts.maxFileSize < e.instance.props.size/1024)) e.returnvalue.props.children.splice(2, 0, BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, { if (e.instance.props.filename == "message.txt" && (settings.onDemand || amounts.maxFileSize && (amounts.maxFileSize < e.instance.props.size/1024))) {
e.returnvalue.props.children.splice(2, 0, BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
text: this.labels.button_injectattchment_text, text: this.labels.button_injectattchment_text,
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Anchor, { children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Anchor, {
rel: "noreferrer noopener", rel: "noreferrer noopener",
@ -250,6 +251,7 @@ var DisplayLargeMessages = (_ => {
}) })
})); }));
} }
}
forceUpdateAll () { forceUpdateAll () {
settings = BDFDB.DataUtils.get(this, "settings"); settings = BDFDB.DataUtils.get(this, "settings");