Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Show who banned the user on hover #1441

Merged
merged 2 commits into from
Oct 11, 2017

Conversation

turt2live
Copy link
Member

@turt2live turt2live commented Sep 29, 2017

@@ -652,8 +655,9 @@ module.exports = React.createClass({
<ul className="mx_RoomSettings_banned">
{banned.map(function(member) {
const banEvent = member.events.member.getContent();
const bannedBy = self.props.room.getMember(member.events.member.getSender());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could potentially be null but BannedUser has a requirement for by. I suggest falling back to the user ID for the sender if by is falsey.

Fixes element-hq/element-web#5039

Signed-off-by: Travis Ralston <travpc@gmail.com>
Signed-off-by: Travis Ralston <travpc@gmail.com>
@turt2live
Copy link
Member Author

Apologies for the force push. I screwed up the merge.

Should be fixed now @lukebarnard1

@lukebarnard1 lukebarnard1 merged commit 8958be9 into matrix-org:develop Oct 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants