You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-19 05:22:13 +03:00
Use the correct userId when displaying who redacted a message
This commit is contained in:
@@ -25,7 +25,9 @@ module.exports = React.createClass({
|
|||||||
render: function() {
|
render: function() {
|
||||||
let tooltip = _t("Removed or unknown message type");
|
let tooltip = _t("Removed or unknown message type");
|
||||||
if (this.props.mxEvent.isRedacted()) {
|
if (this.props.mxEvent.isRedacted()) {
|
||||||
tooltip = _t("Message removed by %(userId)s", {userId: this.props.mxEvent.getSender()});
|
tooltip = _t("Message removed by %(userId)s", {
|
||||||
|
userId: this.props.mxEvent.getUnsigned().redacted_because.sender,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const text = this.props.mxEvent.getContent().body;
|
const text = this.props.mxEvent.getContent().body;
|
||||||
|
|||||||
Reference in New Issue
Block a user