chore: more clean up
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user