You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
Fix the MessagePanel test
Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
@@ -97,12 +97,12 @@ const COMMANDS = [
|
||||
{
|
||||
command: '/ignore',
|
||||
args: '<user-id>',
|
||||
description: 'Ignores a user, hiding their messages from you'
|
||||
description: 'Ignores a user, hiding their messages from you',
|
||||
},
|
||||
{
|
||||
command: '/unignore',
|
||||
args: '<user-id>',
|
||||
description: 'Stops ignoring a user, showing their messages going forward'
|
||||
description: 'Stops ignoring a user, showing their messages going forward',
|
||||
},
|
||||
// Omitting `/markdown` as it only seems to apply to OldComposer
|
||||
];
|
||||
|
||||
@@ -241,7 +241,7 @@ module.exports = React.createClass({
|
||||
|
||||
// TODO: Implement granular (per-room) hide options
|
||||
_shouldShowEvent: function(mxEv) {
|
||||
if (MatrixClientPeg.get().isUserIgnored(mxEv.sender.userId)) {
|
||||
if (mxEv.sender && MatrixClientPeg.get().isUserIgnored(mxEv.sender.userId)) {
|
||||
return false; // ignored = no show (only happens if the ignore happens after an event was received)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user