Show who redacted an event on hover
This should fix #3931 although it's not obvious who actually performed the redaction. Signed-off-by: Travis Ralston <travpc@gmail.com>pull/21833/head
parent
94ec11d3e1
commit
8dc2604d63
|
@ -23,9 +23,14 @@ module.exports = React.createClass({
|
||||||
displayName: 'UnknownBody',
|
displayName: 'UnknownBody',
|
||||||
|
|
||||||
render: function() {
|
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()});
|
||||||
|
}
|
||||||
|
|
||||||
const text = this.props.mxEvent.getContent().body;
|
const text = this.props.mxEvent.getContent().body;
|
||||||
return (
|
return (
|
||||||
<span className="mx_UnknownBody" title={_t("Removed or unknown message type")}>
|
<span className="mx_UnknownBody" title={tooltip}>
|
||||||
{text}
|
{text}
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
|
|
|
@ -827,6 +827,7 @@
|
||||||
"Autocomplete Delay (ms):": "Autocomplete Delay (ms):",
|
"Autocomplete Delay (ms):": "Autocomplete Delay (ms):",
|
||||||
"This Home server does not support groups": "This Home server does not support groups",
|
"This Home server does not support groups": "This Home server does not support groups",
|
||||||
"Loading device info...": "Loading device info...",
|
"Loading device info...": "Loading device info...",
|
||||||
|
"Message removed by %(userId)s": "Message removed by %(userId)s",
|
||||||
"Groups": "Groups",
|
"Groups": "Groups",
|
||||||
"Create a new group": "Create a new group",
|
"Create a new group": "Create a new group",
|
||||||
"Create Group": "Create Group",
|
"Create Group": "Create Group",
|
||||||
|
|
|
@ -838,6 +838,7 @@
|
||||||
"Autocomplete Delay (ms):": "Autocomplete Delay (ms):",
|
"Autocomplete Delay (ms):": "Autocomplete Delay (ms):",
|
||||||
"This Home server does not support groups": "This Home server does not support groups",
|
"This Home server does not support groups": "This Home server does not support groups",
|
||||||
"Loading device info...": "Loading device info...",
|
"Loading device info...": "Loading device info...",
|
||||||
|
"Message removed by %(userId)s": "Message removed by %(userId)s",
|
||||||
"Groups": "Groups",
|
"Groups": "Groups",
|
||||||
"Create a new group": "Create a new group",
|
"Create a new group": "Create a new group",
|
||||||
"Create Group": "Create Group",
|
"Create Group": "Create Group",
|
||||||
|
|
Loading…
Reference in New Issue