Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2021-08-26 15:59:40 +0300
committerGitHub <noreply@github.com>2021-08-26 15:59:40 +0300
commit24b35b5a22e4052a4370f3a2ca7c116920542425 (patch)
treef2865821f7b52903e08ab700b00aa23c7663cc82 /src
parent5e0a4f6796efc44b14f0a81398a3cbdc90d08c49 (diff)
parentdf9c18ecce68b8e3eda0170fa33b9f17d240d6cf (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.vue8
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