Enhance audio notification system in chat.js: refactor sound handling for incoming messages, ensuring proper audio element management and improved playback logic. Add audio element in chat.blade.php for seamless integration.

This commit is contained in:
Mekan1206
2026-08-16 19:35:51 +05:00
parent f4f781b835
commit c78f9bc944
2 changed files with 118 additions and 34 deletions

View File

@@ -41,6 +41,7 @@
</div>
</div>
<audio id="mm-chat-sound" src="{{ asset('assets/panel/audio/sound.mp3') }}" preload="auto" playsinline hidden></audio>
<script>
window.MM_CHAT = {
conversationsUrl: @json(url('/panel/chat/conversations')),