diff options
author | Maksim Sukharev <antreesy.web@gmail.com> | 2023-08-14 20:16:15 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-08-15 03:39:56 +0000 |
commit | 94636b300ca7e0fd7ff90b88c8d095c0d9fd5ae6 (patch) | |
tree | 23d76633f59ab84bc2a5f2c0b5ee2cac362454d7 | |
parent | 981d1a2bcf3a01ace47cebf72a6080ef89e72ed9 (diff) |
introduce computed variable whether to show speaking time and status or not
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
-rw-r--r-- | src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue b/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue index 6a161e3f4..791ad2cd7 100644 --- a/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue +++ b/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue @@ -40,7 +40,7 @@ disable-tooltip :show-user-status="showUserStatus && !isSearched" :preloaded-user-status="preloadedUserStatus" - :highlighted="isParticipantSpeaking" + :highlighted="isSpeakingStatusAvailable && isParticipantSpeaking" :offline="isOffline" /> <!-- Participant's data --> @@ -349,8 +349,12 @@ export default { return text }, + isSpeakingStatusAvailable() { + return this.isInCall && !!this.participant.inCall && !!this.timeSpeaking + }, + statusMessage() { - if (this.isInCall && this.participant.inCall && this.timeSpeaking) { + if (this.isSpeakingStatusAvailable) { return this.isParticipantSpeaking ? '💬 ' + t('spreed', '{time} talking …', { time: formattedTime(this.timeSpeaking, true) }) : '💬 ' + t('spreed', '{time} talking time', { time: formattedTime(this.timeSpeaking, true) }) |