Show unblock button on own blocked channels

This commit is contained in:
Thomas Zarebczan 2020-10-15 17:49:05 -04:00 committed by GitHub
parent bcb65cd9fa
commit ba786fa50e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@ export default function BlockButton(props: Props) {
const blockTitlePrefix = channelIsBlocked ? __('Unblock this channel') : __('Block this channel');
const blockedOverride = channelIsBlocked && isHovering && __('Unblock');
return permanentUrl && !claimIsMine ? (
return permanentUrl && (!claimIsMine || channelIsBlocked) ? (
<Button
ref={blockRef}
icon={ICONS.BLOCK}