Skip to content

Commit

Permalink
fix(participants): show remote autocomplete options in search results
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Mar 13, 2024
1 parent b7c6b77 commit 6b0d3d3
Show file tree
Hide file tree
Showing 2 changed files with 5 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
1 change: 1 addition & 0 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export const ATTENDEE = {
CIRCLES: 'circles',
BOTS: 'bots',
BRIDGED: 'bridged',
REMOTES: 'remotes',
FEDERATED_USERS: 'federated_users',
PHONES: 'phones',
},
Expand Down

0 comments on commit 6b0d3d3

Please sign in to comment.