You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-19 20:23:18 +03:00
No text required, do not continuate after redacted even
It's curious, however, that a continuation occured after a redacted event, given that the event shouldn't have a sender
This commit is contained in:
@ -411,7 +411,9 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
// is this a continuation of the previous message?
|
// is this a continuation of the previous message?
|
||||||
var continuation = false;
|
var continuation = false;
|
||||||
if (prevEvent !== null && prevEvent.sender && mxEv.sender
|
|
||||||
|
if (prevEvent !== null
|
||||||
|
&& !prevEvent.isRedacted() && prevEvent.sender && mxEv.sender
|
||||||
&& mxEv.sender.userId === prevEvent.sender.userId
|
&& mxEv.sender.userId === prevEvent.sender.userId
|
||||||
&& mxEv.getType() == prevEvent.getType()) {
|
&& mxEv.getType() == prevEvent.getType()) {
|
||||||
continuation = true;
|
continuation = true;
|
||||||
|
@ -22,11 +22,7 @@ module.exports = React.createClass({
|
|||||||
displayName: 'UnknownBody',
|
displayName: 'UnknownBody',
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
const ev = this.props.mxEvent;
|
const text = this.props.mxEvent.getContent().body;
|
||||||
var text = ev.getContent().body;
|
|
||||||
if (ev.isRedacted()) {
|
|
||||||
text = "This event was redacted";
|
|
||||||
}
|
|
||||||
return (
|
return (
|
||||||
<span className="mx_UnknownBody">
|
<span className="mx_UnknownBody">
|
||||||
{text}
|
{text}
|
||||||
|
Reference in New Issue
Block a user