Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2021-09-20 13:58:23 +02:00 committed by GitHub
parent ba51275189
commit 38ed0ac617
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -7890,7 +7890,10 @@ module.exports = (_ => {
if (!message) message = BDFDB.ObjectUtils.get(e.instance.props[key], "props.message");
else break;
}
if (message) e.returnvalue.props.children.props[InternalData.userIdAttribute] = message.author.id;
if (message) {
e.returnvalue.props.children.props[InternalData.authorIdAttribute] = message.author.id;
if (message.author.id == BDFDB.UserUtils.me.id) e.returnvalue.props.children.props[InternalData.authorSelfAttribute] = true;
}
}
};