Commit Graph

71 Commits

Author SHA1 Message Date
Piotr Tański
2ac019017e [EGD-7993] Fixed contacts matching algorithm
number.isValid() always returns false if there is no national prefix.
2021-11-25 10:02:11 +01:00
Pawel Olejniczak
460858b2eb [CP-813] Fix issues with adding contacts via Mudita Center
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.
2021-11-22 09:48:49 +01:00
Piotr Tański
7637eb0d29 [EGD-7907] Fixed contact editing
A contact could be removed during update process.
2021-11-04 10:41:25 +01:00
Piotr Tański
8038df5d69 [EGD-7828] Phone number match performance fixes
Fixed performance of the number matcher.
2021-10-29 17:39:42 +02:00
Piotr Tański
0f7ae9259c [EGD-7474] Contacts management fixes
Code review fixes.
2021-10-04 15:06:22 +02:00
Piotr Tański
9820a00cbc [EGD-7474] Contacts management fixes
Fixed managing contacts on the DB side.
2021-10-04 15:06:22 +02:00
Pawel Olejniczak
cdadee24cc [CP-388] Check for duplicates before adding contact
Prevent adding duplicate contact using service desktop API.
2021-08-26 11:56:04 +02:00
Alistair Francis
92e92d3ef2 [EGD-6946] Fix build for GCC11
Fix build issues identified when building on Fedora 34 using GCC11.

Signed-off-by: Alistair Francis <alistair@alistair23.me>
2021-08-02 13:05:10 +02:00
Przemyslaw Brudny
10f27328e8 [EGD-7215] Connected Sim contact import with backends
Connected Sim contact import with cellular contact read
and DB contacts write.
2021-07-29 23:31:04 +02:00
Wojtek Rzepecki
3ac4bd4935 [EGD-7127] Store imported contacts in DB
Added API for storing imported contacts list
in phonebook database
2021-07-22 15:45:06 +02:00
RobertPiet
2c3965df18 [EGD-5557] Contact Endpoint pagination
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.
2021-02-17 15:13:27 +01:00
Przemyslaw Brudny
e7b9bcf7e9 [EGD-5133] Fix settings bus add duplications
Changed Bus Channels vector to set to prevent
duplicates and cleaned logging.
2021-01-08 17:33:00 +01:00
Bartosz Cichocki
39fc379071 [EGD-4399] no response fix (#1061)
[EGD-4400] added contact ID sending after contact adding

Co-authored-by: SP2FET <bartosz.cichocki@mudita.com>
2020-11-23 09:37:39 +01:00
PrzeBrudny
88939f8209 [EGD-4070] Messages listView sync db queries refactored to full async. (#837) 2020-10-26 14:02:13 +01:00
Radoslaw Wicik
2276ceed67 [EGD-3743] Update copyrights in fies 2020-10-20 12:55:10 +02:00
pawpMudita
9311e33aa5 EGD-3808 Scrolling contacts list with a particular letter - part 2 2020-10-02 10:09:36 +02:00
Piotr Tanski
7e520b49a2 [EGD-3788] Fixes for message drafts feature after requirements elaboration. (#733) 2020-09-29 12:34:58 +02:00
pawpMudita
7694df5be9 [EGD-3139]Scrolling contacts list with a particular letter - part 1 2020-09-24 15:45:07 +02:00
Pawel Olejniczak
f8b82e887c [EGD-3679] Replace vCard encoding with plain text for exporting contact data
[EGD-3679] Update contact record tests

[EGD-3679] Clean up ContactRecord

[EGD-3679] Remove vcard encoding

[EGD-3679] Update changelog
2020-09-16 11:16:47 +02:00
Radoslaw Wicik
93244cdf53 [EGC-2974] Fix typo in ContactRecord function name 2020-09-16 10:54:24 +02:00
Radoslaw Wicik
1a919db2ed [EGD-2974] Support for temporary contacts as a group 2020-09-15 15:04:10 +02:00
RobertPiet
82fb697c24 [EGD-2460] protection at the moment of conversion added: exception handling or parameter checkup
[EGD-2460] additional stoi/stoul protected; usage of magin_enum; review issues resolved

[EGB-2460] added return when exception caught as mention by Radek
2020-09-11 14:37:56 +02:00
Marcin Smoczyński
204dd621ef [EGD-3532] identify thread with a number
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.
2020-09-11 11:14:03 +02:00
Marcin Smoczyński
9566c074fb [EGD-3602] fix non aggregate construction
Remove aggregate construction of a non aggregate.
2020-09-09 14:21:18 +02:00
Bartek Cichocki
7dcae592d7 [EGD-3599] added missing queries to calllog DB
[EGD-3599] PR fix
2020-09-09 08:41:10 +02:00
Bartek Cichocki
9095333b2c [EGD-3502] PR fixes 2020-09-02 17:26:01 +02:00
Bartek Cichocki
56f819c95f [EGD-3522] added missing queries
[EGD-3522] added ContactUpdate query

[EGD-3522] added ContactRemove query

[EGD-3502] fixed UT

[EGD-3522] added SMSTemplateGet query

[EGD-3522] added SMSGetCount query

[EGD-3522] added SMSGet query

[EGD-3522] added SMSTemplateGetCount query

[EGD-3522] added SMSTemplateGetCount query

[EGD-3522] added SMSTemplateAdd query

[EGD-3522] added SMSRemove query

[EGD-3522] added SMSTemplateRemove query
2020-09-02 17:26:01 +02:00
Bartek Cichocki
9eeeb6ae92 [EGD-3502] reworked endpoints and handlers
added endpoint listener to query
2020-09-02 17:26:01 +02:00
pawpMudita
ca39564a45 [EGD-3146][ ICE contacts- new window 2020-09-02 11:01:10 +02:00
Marcin Smoczyński
d0a43c0346 [EGD-3507] phonebook: fix duplicates on update
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>
2020-08-21 10:58:42 +02:00
Radoslaw Wicik
2141a8a33c [EGD-3518] Remove old Favourites implementation 2020-08-19 11:26:49 +02:00
Pawel Olejniczak
cacd266ad2 [EGD-3187] Auto releasing speed dial number of blocked contact 2020-08-13 12:36:46 +02:00
Marcin Smoczyński
0179c7536d [EGD-3494] db: fix contacts get query
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>
2020-08-11 14:55:24 +02:00
Pawel Olejniczak
021910ba0b [EGD-3488] Remove more not needed checks of contact numbers received from db 2020-08-07 10:14:38 +02:00
Pawel Olejniczak
7689f7dd2c [EGD-3488] Remove incorrect verification of contact numbers received from db 2020-08-07 10:14:38 +02:00
Marcin Smoczyński
885fe1083a db: improve query handling
Introduce a new way to handle query responses allowing to deal with
races:
 - bind reponse with request,
 - handle responses with an observer-like interface.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2020-08-06 14:13:35 +02:00
Marcin Smoczyński
060df7e11f [EGD-3370] phonebook: fix alternative number
Enable handling of an alternative number in phonebook.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2020-08-04 17:07:37 +02:00
Radoslaw Wicik
d30d135fba [EGD-3386] Add proper displaying in gui. 2020-07-24 11:26:29 +02:00
Radoslaw Wicik
ee685049ae [EGD-3386] Add contact flags to DB 2020-07-24 11:26:29 +02:00
Mateusz Grzywacz
17c9d3ee7b [feature] use .isValid() to validate all interface entires 2020-07-20 14:10:11 +02:00
Mateusz Grzywacz
8392a8948f [feature] move all remaining interfaces to Record 2020-07-20 14:10:11 +02:00
Mateusz Grzywacz
ac5bdf4c01 [feature] move ContactsAddressTableRow to Record 2020-07-20 14:10:11 +02:00
Radoslaw Wicik
c2b8a33d4b [EGD-3428] Fix db interface functions names - Database class 2020-07-16 10:55:07 +02:00
Radoslaw Wicik
ad84b981d9 [EGD-3428] Fix db interface functions names - Table class 2020-07-16 10:55:07 +02:00
Marcin Smoczyński
df60d9c240 [EGD-3251] phonebook: improved search
Refactor phonebook's models to merge both implementation. One model
class is used for both main and search results windows.

Improve search by matching entered string against:
 - first_name " " last_name
 - last_name " " fist_name
Sort results by last_name " " first_name, favs first.

Small improvement to the list view has been added to deal with
asynchronous db reads.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2020-07-09 11:28:45 +02:00
Marcin Smoczyński
aeeafb43ca [EGD-2595] do not use string numbers in messaging
Use PhoneNumber::View instead.
Removed caching mechanism of ContactRecord, because it was causing
several problems and it was a bad place to put it anyway.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2020-06-22 13:57:40 +02:00
Marcin Smoczyński
0936930063 [EGD-2593] improved matching contact by numbers
Introduced format aware phone number comparison to allow improved
matching phone numbers with contacts.

Phone numbers are also displayed formatted on a phonebook/calllog
list view and on detailed contact info view.

Entered and e164 number are verified to match each other during
processing db request.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2020-06-17 14:01:38 +02:00
Pawel Olejniczak
2014feabc7 [EGD-3155] Add changes suggested by reviewers 2020-05-08 08:57:29 +02:00
Pawel Olejniczak
6eed387019 [EGD-3155] Update db unit tests according to last changes with contact address 2020-05-08 08:57:29 +02:00
Pawel Olejniczak
f797b17b2a [EGD-3155] Adjust address id field names and change its type to integer 2020-05-08 08:57:29 +02:00