chore(voice): drop debug toasts; appease rubocop on inbox jbuilder

- Remove the [debug] useAlert breadcrumbs that surfaced the accept-call
  silent-fail (the !conversation guard). The actual fix from
  6ed9500792 stays.
- Rubocop Style/IfUnlessModifier on the WhatsApp voice_enabled jbuilder
  block — convert to modifier form.
This commit is contained in:
Tanmay Deep Sharma
2026-05-03 15:40:30 +07:00
parent 5aa1df81a8
commit 499ac053ee
3 changed files with 3 additions and 28 deletions
@@ -4,7 +4,6 @@ import { useRouter } from 'vue-router';
import { useStore } from 'vuex';
import { useCallSession } from 'dashboard/composables/useCallSession';
import { setWhatsappCallMuted } from 'dashboard/composables/useWhatsappCallSession';
import { useAlert } from 'dashboard/composables';
import WindowVisibilityHelper from 'dashboard/helper/AudioAlerts/WindowVisibilityHelper';
import Avatar from 'dashboard/components-next/avatar/Avatar.vue';
@@ -75,15 +74,7 @@ const handleEndCall = async () => {
};
const handleJoinCall = async call => {
useAlert('[debug] handleJoinCall click handler fired');
if (!call) {
useAlert('[debug] handleJoinCall bailed: no call object');
return;
}
if (isJoining.value) {
useAlert('[debug] handleJoinCall bailed: already joining');
return;
}
if (!call || isJoining.value) return;
const { conversation } = getCallInfo(call);
// End current active call before joining new one