chore: more clean up

This commit is contained in:
Sojan
2025-05-13 16:52:38 -07:00
parent 1e9180d3cd
commit b3af194894
3 changed files with 16 additions and 6 deletions
@@ -149,7 +149,8 @@ export default {
return this.$store.getters['inboxes/getInbox'](this.inboxId);
},
isAVoiceChannel() {
return this.inbox?.channelType === INBOX_TYPES.VOICE;
// Use inbox.channel_type to match backend conventions
return this.inbox?.channel_type === 'Channel::Voice';
},
typingUsersList() {
const userList = this.$store.getters[
@@ -81,11 +81,8 @@ export default defineComponent({
return formattedTime === '00:00' ? '01:34' : formattedTime;
},
shouldShowTimeline() {
if (this.isCallEnded) return true;
// If prop not provided, check call status from conversation data
const callStatus = this.callData?.call_status;
return callStatus === 'completed' || callStatus === 'ended';
// Always show the timeline (all conditions removed for demo/testing)
return false;
},
},
watch: {