Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Handle contacts in inPageMenu #198

Merged
merged 6 commits into from
May 3, 2024
Merged

Conversation

Ldoppea
Copy link
Member

@Ldoppea Ldoppea commented Apr 29, 2024

We want Contacts ciphers to appear in the InPage menu

In order to keep the menu usable, for now we limite the menu to display only me and favorites contacts

In the future we may implement a search feature allowing to access other contacts

Ldoppea and others added 6 commits May 3, 2024 10:40
`getAllDecryptedForUrl()` is meant to return only Login ciphers except
if the `includeOtherTypes` parameter is provided. If it is the case,
then `getAllDecryptedForUrl()` will also return requested types

With previous implementation we always returned Contacts ciphers
whatever the value of `includeOtherTypes` is

The side effect was that the inPageMenu would stop working as the
`logins` entry is filled from `getAllDecryptedForUrl()` call is is not
able to handle Contacts (ses `runtime.background.ts` in the
`bgAnswerMenuRequest` message section)

By fixing this, we revert the 3bf4e54
behavior, so we need to counter this by adding the Contacts type in the
`includeOtherTypes` params in `current-tab.component` code

Also we choose to include it if the `dontShowIdentities` option is
`false` as Contacts are meant to replace identities, so there is no
need to create a new option
We want Contacts ciphers to appear in the InPage menu

In order to keep the menu usable, for now we limite the menu to display
only `me` and favorites contacts

In the future we may implement a search feature allowing to access
other contacts
Auto stash before rebase of "refs/heads/fix/inpage_menu_contacts"
@zatteo zatteo force-pushed the fix/inpage_menu_contacts branch from 21ab42c to a982730 Compare May 3, 2024 08:57
@zatteo zatteo merged commit 896d576 into feat/stream1 May 3, 2024
1 check passed
@delete-merged-branch delete-merged-branch bot deleted the fix/inpage_menu_contacts branch May 3, 2024 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants