From 7441dc07b84d7458e69b0966176447a9725dd55e Mon Sep 17 00:00:00 2001 From: Jonas Date: Wed, 26 Jul 2023 15:39:30 +0200 Subject: [PATCH] fix(MemberPicker): respect inherrited current user via groups/circles Signed-off-by: Jonas --- src/components/Member/CurrentMembers.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/Member/CurrentMembers.vue b/src/components/Member/CurrentMembers.vue index d8d074312..b63afb161 100644 --- a/src/components/Member/CurrentMembers.vue +++ b/src/components/Member/CurrentMembers.vue @@ -10,7 +10,7 @@ :display-name="item.displayName" :user-type="circleMemberType(item)" :level="item.level" - :is-current-user="item.userId === currentUser" + :is-current-user="isCurrentUser(item)" :is-searched="false" /> @@ -75,6 +75,13 @@ export default { currentUser() { return getCurrentUser().uid }, + + isCurrentUser() { + return function(item) { + return item.userId === this.currentUser + || item.singleId === item.circle.initiator.singleId + } + }, }, methods: {