diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2021-08-26 15:59:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-26 15:59:40 +0300 |
commit | 24b35b5a22e4052a4370f3a2ca7c116920542425 (patch) | |
tree | f2865821f7b52903e08ab700b00aa23c7663cc82 /src | |
parent | 5e0a4f6796efc44b14f0a81398a3cbdc90d08c49 (diff) | |
parent | df9c18ecce68b8e3eda0170fa33b9f17d240d6cf (diff) |
Merge pull request #5670 from nextcloud/feature/noid/circle-tracking
⭕ Circle tracking
Diffstat (limited to 'src')
-rw-r--r-- | src/components/RightSidebar/Participants/CurrentParticipants/CurrentParticipants.vue | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/components/RightSidebar/Participants/CurrentParticipants/CurrentParticipants.vue b/src/components/RightSidebar/Participants/CurrentParticipants/CurrentParticipants.vue index 015c0295f..f8415f089 100644 --- a/src/components/RightSidebar/Participants/CurrentParticipants/CurrentParticipants.vue +++ b/src/components/RightSidebar/Participants/CurrentParticipants/CurrentParticipants.vue @@ -137,6 +137,14 @@ export default { * @return {number} */ sortParticipants(participant1, participant2) { + const p1IsCircle = participant1.actorType === ATTENDEE.ACTOR_TYPE.CIRCLES + const p2IsCircle = participant2.actorType === ATTENDEE.ACTOR_TYPE.CIRCLES + + if (p1IsCircle !== p2IsCircle) { + // Circles below participants and groups + return p2IsCircle ? -1 : 1 + } + const p1IsGroup = participant1.actorType === ATTENDEE.ACTOR_TYPE.GROUPS const p2IsGroup = participant2.actorType === ATTENDEE.ACTOR_TYPE.GROUPS |