Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,19 @@ export default {
* @returns {number}
*/
sortParticipants(participant1, participant2) {
let session1 = participant1.sessionId
let session2 = participant2.sessionId
const session1 = participant1.sessionId
const session2 = participant2.sessionId
/**
* For now the user status is not overwriting the online-offline status anymore
* It felt too weird having users appear as offline but they are in the call or chat actively
if (participant1.status === 'offline') {
session1 = '0'
}
if (participant2.status === 'offline') {
session2 = '0'
}
*/

if (session1 === '0') {
if (session2 !== '0') {
return 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,12 @@ export default {
},

isOffline() {
return /* this.participant.status === 'offline' || */ this.sessionId === '0'
/**
* For now the user status is not overwriting the online-offline status anymore
* It felt too weird having users appear as offline but they are in the call or chat actively
return this.participant.status === 'offline' || this.sessionId === '0'
*/
return this.sessionId === '0'
},
isGuest() {
return [PARTICIPANT.TYPE.GUEST, PARTICIPANT.TYPE.GUEST_MODERATOR].indexOf(this.participantType) !== -1
Expand Down