Skip to content

Commit

Permalink
Merge pull request #82 from TurunWappuradio/fix/hide-ban-button-on-te…
Browse files Browse the repository at this point in the history
…legram-users

Hide ban button from Telegram users
  • Loading branch information
kovipu authored Apr 21, 2024
2 parents fcec9ff + 304b0d1 commit 415380e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/ShoutBox/messageformatter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const MessageFormatter = ({
<NameFormatter telegram={telegram} name={name} timestamp={timestamp} />
<div className="break-words text-sm">{message}</div>
</div>
{isAdmin && name !== 'Toimitus' && name !== 'Palvelin' && (
{isAdmin && name !== 'Toimitus' && name !== 'Palvelin' && !telegram && (
<button
className="m-1 inline-block cursor-pointer select-none rounded border-[1px] border-white bg-transparent px-3 py-1.5 text-center align-middle text-base font-bold text-coral"
onClick={() => onBanClick(name)}
Expand Down

0 comments on commit 415380e

Please sign in to comment.