Skip to content

Commit

Permalink
Merge pull request #11794 from nextcloud/fix/noid/list-remote-options
Browse files Browse the repository at this point in the history
fix(participants): show remote autocomplete options in search results
  • Loading branch information
Antreesy authored Mar 14, 2024
2 parents ad344d3 + 5e2de74 commit 891ede4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,10 @@ export default {
return this.searchResults.filter((item) => item.source === ATTENDEE.ACTOR_TYPE.CIRCLES)
},
addableRemotes() {
return this.searchResults.filter((item) => item.source === ATTENDEE.ACTOR_TYPE.FEDERATED_USERS)
return this.searchResults.filter((item) => item.source === ATTENDEE.ACTOR_TYPE.REMOTES)
.map((item) => {
return { ...item, source: ATTENDEE.ACTOR_TYPE.FEDERATED_USERS }
})
// TODO remove when Federation feature is ready
.concat(OC.debug
? this.addableUsers.map(user => ({
Expand Down
2 changes: 2 additions & 0 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ export const ATTENDEE = {
BRIDGED: 'bridged',
FEDERATED_USERS: 'federated_users',
PHONES: 'phones',
/* @internal Only use with server APIs (like /core/autocomplete/get) and never with Talk APIs */
REMOTES: 'remotes',
},

BRIDGE_BOT_ID: 'bridge-bot',
Expand Down

0 comments on commit 891ede4

Please sign in to comment.