diff options
author | Joas Schilling <coding@schilljs.com> | 2020-09-30 17:56:22 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-10-01 17:48:54 +0300 |
commit | b89c16fa2f91710f45656370df7798d5d1ddc9f2 (patch) | |
tree | d0f0b5014cb3d04ede2ef7a25b0e658facadf96e /src | |
parent | 5e4bbc98c9112d0ddc61ce689e2ef135d086aeb8 (diff) |
Show online status and status icon in Talk as discussed
Also being in a conversation/call should make you appear online as before.
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/AvatarWrapper/AvatarWrapper.vue | 5 | ||||
-rw-r--r-- | src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue | 3 | ||||
-rw-r--r-- | src/mixins/userStatus.js | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/src/components/AvatarWrapper/AvatarWrapper.vue b/src/components/AvatarWrapper/AvatarWrapper.vue index 88c5b1e34..f6dad0537 100644 --- a/src/components/AvatarWrapper/AvatarWrapper.vue +++ b/src/components/AvatarWrapper/AvatarWrapper.vue @@ -33,6 +33,7 @@ :disable-tooltip="disableTooltip" :disable-menu="disableMenu" :show-user-status="showUserStatus" + :show-user-status-compact="showUserStatusCompact" :size="size" /> <div v-else class="guest" @@ -87,6 +88,10 @@ export default { type: Boolean, default: true, }, + showUserStatusCompact: { + type: Boolean, + default: true, + }, }, computed: { // Determines which icon is displayed diff --git a/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue b/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue index 1226829af..3b2207186 100644 --- a/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue +++ b/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue @@ -33,6 +33,7 @@ :disable-tooltip="true" :size="44" :show-user-status="!isSearched" + :show-user-status-compact="false" :name="computedName" :source="participant.source" :offline="isOffline" /> @@ -209,7 +210,7 @@ export default { }, isOffline() { - return this.participant.status === 'offline' || this.sessionId === '0' + return /* this.participant.status === 'offline' || */ this.sessionId === '0' }, isGuest() { return [PARTICIPANT.TYPE.GUEST, PARTICIPANT.TYPE.GUEST_MODERATOR].indexOf(this.participantType) !== -1 diff --git a/src/mixins/userStatus.js b/src/mixins/userStatus.js index 461ed197d..8782723fa 100644 --- a/src/mixins/userStatus.js +++ b/src/mixins/userStatus.js @@ -44,7 +44,7 @@ const userStatus = { return false } - return userData.status === 'away' || userData.status === 'dnd' + return userData.status === 'dnd' }, }, } |