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>
This commit is contained in:
Joas Schilling 2020-09-30 16:56:22 +02:00
Родитель 5e4bbc98c9
Коммит b89c16fa2f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 7076EA9751AACDDA
3 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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

Просмотреть файл

@ -44,7 +44,7 @@ const userStatus = {
return false
}
return userData.status === 'away' || userData.status === 'dnd'
return userData.status === 'dnd'
},
},
}