mirror of https://github.com/vector-im/riot-web
Use the correct userId when displaying who redacted a message
parent
19364c25ee
commit
5990e41bd7
|
@ -25,7 +25,9 @@ module.exports = React.createClass({
|
|||
render: function() {
|
||||
let tooltip = _t("Removed or unknown message type");
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue