Commit Graph

67 Commits

Author SHA1 Message Date
Lukasz Mastalerz
d9a1194e6f [BH-1688] Create a standard for logs
* Adding document describing how to use logger
* Adjusting logs to follow a new guide
* Change order in log header:
  line number is now before function name
2023-10-23 15:17:44 +02:00
Pawel Olejniczak
f56b631eb6 [CP-563] Return correct threadID after adding new message
After adding new message via Messages EP API,
threadID field was always 0, which was incorrect.
2022-07-22 10:34:31 +02:00
Pawel Olejniczak
caed213fcd [CP-1085] Collect sms threads notifications in outbox ep
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.
2022-04-14 16:51:31 +02:00
Pawel Olejniczak
c9e1ec419e [CP-1082] Collect sms notifications in outbox ep
When sms record is created/updated/removed 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.
2022-04-14 16:51:31 +02:00
GravisZro
e59cd4036b [MOS-245] Fix errant spaces
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.
2022-02-24 08:47:20 +01: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
Marcin Smoczyński
bd90e57516 [BH-907] Split utils module into components
Split module-utils into smaller components for better dependency
management. Fix many dependencies throughout the project.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-23 15:14:40 +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
Jakub Pyszczak
c494f5c1b4 [EGD-7006] Removed sensitive data from db
Sensitive data removed from logs in module db and service db.
2021-06-30 15:52:47 +02:00
Lukasz Skrzypczak
7fee0d9cfb [BH-378] Utils move log to library
Moved log to separate library
2021-06-08 12:24:29 +02:00
Pawel Olejniczak
70e9ef0d03 [CP-77] Replace receivedAt and sentAt fields with createdAt
sentAt json field was never updated and was not used.
Cleaned up DB and DB interface from unused date_send.
2021-05-31 17:52:35 +02:00
Michał Kamoń
dfcf9817b7 [EGD-5790] Fix end of line display in message thumbnail
Original problem was that '\n' character was displayed as `[]` in
message thumbnail. After consulting Design-Team thumbnail should not
display anything succeeding problematic character.
2021-03-18 09:50:32 +01:00
Mateusz Grzegorzek
9832365ca2 [EGD-5698] Add pagination for messages
Add pagination for messages
2021-02-26 18:37:56 +01:00
Piotr Tański
31df1ce788 [EGD-4921] Add next harness test cases
Test harness extended with additional tests:
- Making a call to a specific phone number.
- Calling back to the last number from the call log.
- Searching for SMSes with a phone number filter.
2020-12-23 11:02:43 +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
Przemyslaw Brudny
196c02686a [EGD-2395] Added BottomTop orientation support for listView. Created SMSThreadViewWindow and SMSOutputWidget. MessagesStyle moved from global Style.hpp. Fixes in Text. ListView fixes, BoxLayout callback for requestedSize. Added smsInput into list. Drafts handling added. 2020-10-07 19:45:01 +02:00
Piotr Tanski
7e520b49a2 [EGD-3788] Fixes for message drafts feature after requirements elaboration. (#733) 2020-09-29 12:34:58 +02:00
Przemyslaw Brudny
b7eb4365ea [EGD-3799] Messages queries cleanups. 2020-09-23 15:02:04 +02:00
Radoslaw Wicik
49a67764d6 [EGD-3782] Fix: sending sms to new or deleted contact 2020-09-22 09:27:38 +02:00
Piotr Tanski
9447da6585 [EGD-2870] Message drafts feature implemented. (#704)
- Save unsent messages as drafts on thread view window close.
- Queries for SMS add and update introduced.
- Fix for windows IDs all being zeroes across the GUI.
2020-09-21 10:25:00 +02:00
Radoslaw Wicik
1a919db2ed [EGD-2974] Support for temporary contacts as a group 2020-09-15 15:04:10 +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
Bartek Cichocki
41582135aa [EGD-3593] fixed unhandled factory-reset endpoint
added update file check in update endpoint
added missing getByThreadID message query
2020-09-07 11:00:15 +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
Bartek Cichocki
91e29f1cac [EGD-3486] Implementation of SMS handling in service-desktop
added message removal method

added message marking as read/unread

added message thread to_json() method, fixed unit test

added template processing except search

added SMS gathering by contactID

added getByText sms query

added template search query
2020-08-15 11:34:18 +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
Mateusz Grzywacz
49a296a0cf [EGD-3281] SMS converstion view - UT 2020-07-24 13:29:41 +02:00
Mateusz Grzywacz
db82cc2caa [EGD-3281] SMS converstion view - no try/catch 2020-07-24 13:29:41 +02:00
Mateusz Grzywacz
a401cb993a [EGD-3281] SMS converstion view - review notes
* extract update thread summary method
* move SmsTableRow → *$new* SmsRecord
2020-07-24 13:29:41 +02:00
Mateusz Grzywacz
b26315c8d9 [EGD-3281] SMS converstion view - refresh thread snippet on db change 2020-07-24 13:29:41 +02:00
Mateusz Grzywacz
6ebdc5f447 [EGD-3435] fix SMS send again (moved to Query) 2020-07-22 13:37:30 +02:00
Mateusz Grzywacz
e832fda678 [feature] small fixes in message types etc 2020-07-20 14:27:46 +02:00
alek
e53982a968 [EGD-3402] added Record base class for sms and thread table classes 2020-07-16 13:49:44 +02:00
alek
edeb310b62 [EDG-3402] minor clean up and error handling 2020-07-16 13:49:44 +02:00
alek
c6f4a9f83e [EGD-3397] fix for HF on opening thread for deleted contact 2020-07-16 13:49:44 +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
Alek Rudnik
3baa85363d Egd 2835 sms unread vs unseen notifications (#514)
* [EGD-2835] thread table based sms not read notifications

* [EGD-2835] removed redundant read field from sms db table

* [EGD-2835] clear unread status of a thread if thre thread is open

* [EGD-2835] updated database documentation

* [EGD-2835] added changelog
2020-07-10 11:57:19 +02:00
Mateusz Grzywacz
194085de0a [EGD-3348] subclass ThreadRecord from Record struct 2020-07-07 16:56:46 +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
Alek Rudnik
44f7bbdf8a Egd 2799 unread message indication (#429)
* [EGD-2799] 
    Added unread thread indicator.
    Added last message in thread indicators:
    -Note sent:
    -You:
    -Draft:
2020-06-10 18:29:07 +02:00
Adam Dobrowolski
4a61f400e7 EGD-3055 Fixed printf issues 2020-04-08 12:23:53 +02:00
Przemyslaw Brudny
c0822b6658 [EDG-3019] Moved log.hpp and debug.hpp into main PurePhone repo 2020-03-24 15:55:32 +01:00
Adam Dobrowolski
09adf35eb5 EGD-3026 Database record unified ID field name 2020-03-24 14:17:12 +01:00
Przemyslaw Brudny
8f92715951 [EDG-3019] Segger utils moved to git submodule 2020-03-23 18:37:37 +01:00
Radoslaw Wicik
a8573a404c Apply new style 2020-03-17 10:03:16 +01:00