Fixed no response on Center side when editing a contact to have
the same number as another contact in phonebook.
Added a duplicate number to the response body.
Fixed inability to save a contact without a phone number
when contact lose the number after replace similar number and
visibility of the SAVE button when editing/creating a contact.
There was possibility to add contact, or edit some contact, with have
2 same phone numbers (exactly the same or witch/without country code).
Now this has been fixed and is not possible to create, even by editing, contact
with 2 exactly the same numbers or 2 same numbers and one of them with a country code
Fix for scenario when contact with some number with/without country code
was deleted, and new contact with same number but without/with country
code is added and then new contact have same prefix as deleted one.
Now new contact will have number exacly like provided.
Fix for imported contacts from SIM don't show up in Mudita Center.
Added functionality to send notification after all imported contacts are
added to the database.
* Switched to DB initialization at compile time
* Organized and cleaned up db files directories(not finished completely)
* Fixed DB related unit tests
* Minor improvements to CMake
* Small fixes for GCC12 build
Adding or removing country code from existing contacts number is
changing now number record itself, exactly when changed number
is placed in DB, instead to create new number record, to avoid
miss match during matching numbers.
Adding or removing code country from contact's number creates a
new number record. Old number, which was connected witch contact
previously, is removed from the numbers table to avoid miss match
numbers. Changing country code only creates new number records,
without removing old ones. Old ones are temporary number from now.
When thread record is modified during connection
with Mudita Center, notification of that action
should be collected in outbox endpoint to
keep contacts data synchronized between MuditaOS
and Mudita Center.
It appears in the past a major edit was made but had used a regex to
change some text which resulted in an errant space between the
enumuneration/struct/class name and the scope resolution operator.
These errant spaces have been removed.
There was an issue, when contact with a specific number was added,
then removed and added again via Mudita Center. Then
it was displayed without a name. This issue was caused by
another known issue with temporary contacts handling (EGD-79473).
This fix is a workaround to make adding contacts via MC work,
without the need to refactor temporary contacts handling.
Pagination added for contact endpoint.
Introduced PagedContext and query message for contacts that returns
the required contacts together with the number of all contacts in db.
[EGD-2460] additional stoi/stoul protected; usage of magin_enum; review issues resolved
[EGB-2460] added return when exception caught as mention by Radek
Use phone number instead of contact number to identify a message thread
to allow having multiple threads for a contact if contact has multiple
numbers.
Fix duplicates detection when updating a contact.
Before this change dupliates detection both for numbers and speed dial
was not implemented at all.
Fix contact update procedure - add unbinding procedure if a new number
was bound to another contact before update. Do the same for speed dial.
Fix invalid contact number tests (it wasn't taken into account that each
section has clean db state).
Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
Fix contacts get query following changes in the contacts database to
move contacts groups to another table.
Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>