You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-16 22:01:54 +03:00
remove debug and add comment
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@ -243,7 +243,7 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
// TODO: Implement granular (per-room) hide options
|
// TODO: Implement granular (per-room) hide options
|
||||||
_shouldShowEvent: function(mxEv) {
|
_shouldShowEvent: function(mxEv) {
|
||||||
console.log("_shouldShowEvent ", mxEv.getId(), mxEv);
|
// console.log("_shouldShowEvent ", mxEv.getId(), mxEv);
|
||||||
const EventTile = sdk.getComponent('rooms.EventTile');
|
const EventTile = sdk.getComponent('rooms.EventTile');
|
||||||
if (!EventTile.haveTileForEvent(mxEv)) {
|
if (!EventTile.haveTileForEvent(mxEv)) {
|
||||||
return false; // no tile = no show
|
return false; // no tile = no show
|
||||||
@ -344,6 +344,7 @@ module.exports = React.createClass({
|
|||||||
let last = (i == lastShownEventIndex);
|
let last = (i == lastShownEventIndex);
|
||||||
|
|
||||||
if (!this._shouldShowEvent(mxEv)) {
|
if (!this._shouldShowEvent(mxEv)) {
|
||||||
|
// Event is hidden but may be the read marker event
|
||||||
if (mxEv.getId() === this.props.readMarkerEventId) {
|
if (mxEv.getId() === this.props.readMarkerEventId) {
|
||||||
ret.push(this._getReadMarkerTile(this.props.readMarkerVisible));
|
ret.push(this._getReadMarkerTile(this.props.readMarkerVisible));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user