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

Commit

Permalink
Remove autoplay attribute from audio tag in voice messages
Browse files Browse the repository at this point in the history
Before removing autoplay attribute from audio tag in voice messages, all preloaded voice messages would start playing simultaneously. The "false" string wasn't interpreted as a string and no autoplay is the default behaviour anyway.
  • Loading branch information
plan5 authored Aug 20, 2023
1 parent f44a0a6 commit 8b21c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MessageItems/IRCLikeMessageItem/IRCLikeMessageItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function IRCLikeMessageItemAudio({
Duration: {createTextVNode(msToHigherScale(duration))}
<br />
Size: {createTextVNode(bytesToHigherScale(size))}
<audio src={url} autoPlay={false} />
<audio src={url} />
</p>
</div>
);
Expand Down

0 comments on commit 8b21c0b

Please sign in to comment.