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

Synchronise contact update #1274

Open
chibenwa opened this issue Oct 30, 2024 · 0 comments
Open

Synchronise contact update #1274

chibenwa opened this issue Oct 30, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers openpaas-integration

Comments

@chibenwa
Copy link
Member

What

GIVEN a contact Aalice -> [email protected]
WHEN I update the contact mail address to Alice -> [email protected]
THEN I search *ali*
AND the autocomplete shall return *alice*

How

Listen to contacts:contact:update queue

Sample message:

{
    "bookId": "5f50a663bdaffe002629099c",
    "bookName": "contacts",
    "contactId": "bae79596-f6fc-4812-b9e0-4eafe32c2f3d",
    "userId": "5f50a663bdaffe002629099c",
    "vcard": [
        "vcard",
        [
            [
                "version",
                {},
                "text",
                "4.0"
            ],
            [
                "uid",
                {},
                "text",
                "bae79596-f6fc-4812-b9e0-4eafe32c2f3d"
            ],
            [
                "fn",
                {},
                "text",
                "dd"
            ],
            [
                "n",
                {},
                "text",
                [
                    "",
                    "dd",
                    "",
                    "",
                    ""
                ]
            ],
            [
                "categories",
                {},
                "text",
                "vwrbwrbr"
            ],
            [
                "email",
                {
                    "type": "Work"
                },
                "text",
                "mailto:[email protected]"
            ]
        ],
        []
    ]
}

Update the autocomplete database accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers openpaas-integration
Projects
None yet
Development

No branches or pull requests

2 participants