Commit graph

371 commits

Author SHA1 Message Date
Simon Morlat
63732921f9 Revert "fix(MainDb): read is blacklisted by soci, use read_from_start instead on Windows"
This reverts commit 61b927afc2.
2018-05-30 15:23:44 +02:00
Ronan Abhamon
503585ac06 fix(MainDb): store basic chat room participants 2018-05-28 09:28:07 +02:00
Ronan Abhamon
ec23c3bdc8 fix(linphone): add some fixes for Windows + add a export symbol for internal classes 2018-05-24 13:28:01 +02:00
Ronan Abhamon
61b927afc2 fix(MainDb): read is blacklisted by soci, use read_from_start instead on Windows 2018-05-23 10:57:20 +02:00
Ronan Abhamon
954a1a9cd5 fix(core): add many workarounds to build on Windows... 2018-05-22 09:40:48 +02:00
Ronan Abhamon
a225f7cf3a fix(MainDb): add a workaround to define sql filters on Windows 2018-05-22 09:29:01 +02:00
Ronan Abhamon
1cbfe4e499 fix(MainDb): SqlEventFilterBuilder => better code 2018-05-21 14:49:07 +02:00
Ronan Abhamon
f37e941a6c fix(Statements): unsupported array designators (since C99) on Windows... 2018-05-18 11:43:07 +02:00
Ghislain MARY
e682a3b1f5 Fix issue 4893: After being re-invited in a chat room, when the device is restarted nothing can be done in the chat room.
Store the conference created event in DB and update the notify id in DB if insertion of the chat room is requested but it is already stored.
2018-05-16 15:34:46 +02:00
Benjamin Reis
e4422ca7e6 Merge branch 'dev_refactor_cpp' into dev_chatroom_list_subscription 2018-05-09 16:19:26 +02:00
Benjamin Reis
1c1ad84638 fix testers 2018-05-07 10:33:27 +02:00
Ghislain MARY
550502650a Simplify API to get IMDN message state for each participants. 2018-04-27 18:01:15 +02:00
Ghislain MARY
86bd71ce33 Fix datetime values when fetching from database. 2018-04-27 08:53:34 +02:00
Ghislain MARY
38ea7dc357 Send delivery notifications when loading chat rooms from DB if needed. 2018-04-26 11:09:48 +02:00
Ghislain MARY
babbd33142 Store if we have to send a delivery and/or display notification for a message in DB. 2018-04-26 11:09:47 +02:00
Ronan Abhamon
db15df1b2d fix(MainDb): do not use == in sql query 2018-04-25 12:10:12 +02:00
Ghislain MARY
ca39d51bcb Delete client group existing one-to-one chat rooms at start-up to use basic chat rooms instead for the moment. 2018-04-25 11:30:03 +02:00
Benjamin Reis
95d2df43fb fix last notify id when chat room is left 2018-04-20 15:29:18 +02:00
Benjamin Reis
8efc6e412f Merge branch 'dev_refactor_cpp' into dev_chatroom_list_subscription 2018-04-20 10:41:09 +02:00
Benjamin Reis
676ab1a8f5 fix last notify and eenhance tester 2018-04-18 14:35:14 +02:00
Benjamin Reis
361b4c764b Revert "Fix last notify id in DB when inserting a client group chat room."
This reverts commit f2910f7d91.
2018-04-18 14:34:02 +02:00
Ghislain MARY
f2910f7d91 Fix last notify id in DB when inserting a client group chat room. 2018-04-17 14:19:50 +02:00
Ghislain MARY
711495218a Revert "Revert "Merge branch 'dev_content_cpp' into dev_refactor_cpp""
This reverts commit 2686dca63a.
2018-04-12 11:47:14 +02:00
Simon Morlat
701685a9fc Fix db management version (do not go backward) 2018-04-11 17:27:50 +02:00
Ghislain MARY
532c64bfc4 Add API to get the imdn state of a chat message for each participant. 2018-04-10 17:53:12 +02:00
Ghislain MARY
291bf82bed Store the date of message receiving and display for each participant of a chat room in DB. 2018-04-10 17:53:03 +02:00
Jehan Monnier
2686dca63a Revert "Merge branch 'dev_content_cpp' into dev_refactor_cpp"
This reverts commit d7890dbe74, reversing
changes made to e6158d8da5.
2018-04-05 12:08:44 +02:00
Sylvain Berfini
f4d4423fb1 Merge branch 'dev_refactor_cpp' into dev_content_cpp 2018-04-04 13:06:53 +02:00
Sylvain Berfini
8966c2ca77 Started method to get participants in given state for given chat message 2018-03-28 18:20:22 +02:00
Benjamin Reis
177dd8778c Merge remote-tracking branch 'origin/dev_content_cpp' into dev_chatroom_list_subscription 2018-03-20 15:02:18 +01:00
Sylvain Berfini
bca906e399 Merge branch 'dev_refactor_cpp' into dev_content_cpp 2018-03-19 17:01:05 +01:00
Benjamin Reis
f983662df8 set device event of a server chat room when receiving a list subscription 2018-03-19 10:25:38 +01:00
Ronan Abhamon
30b270f221 fix(MainDb): avoid old c-style cast 2018-03-07 15:08:09 +01:00
Ronan Abhamon
58e0b47a99 feat(MainDb): clean xml parser 2018-03-07 15:05:47 +01:00
Sylvain Berfini
1b942b3306 Fixed message state if linphone has crashed while sending it 2018-03-07 14:24:20 +01:00
Ronan Abhamon
c0f5d97a8a fix(MainDb): avoid xml copy in extractFileContentType 2018-03-07 13:53:52 +01:00
Ronan Abhamon
f1dbb519ad fix(MainDb): avoid memory leak 2018-03-07 13:48:40 +01:00
Ronan Abhamon
ae9d3012ef fix(MainDb): do not use free on content 2018-03-07 13:44:39 +01:00
Sylvain Berfini
30380ff39e Fixed file transfer chat messages migration 2018-03-07 13:08:11 +01:00
Benjamin Reis
9e4e48830b We build on C++11 2018-03-06 10:00:53 +01:00
Ronan Abhamon
76342c715f feat(MainDb): reworking, better code (performance and fixes) 2018-03-05 17:25:48 +01:00
Ghislain MARY
7c239c8ec4 Fix wrong statement being used in main db. 2018-03-02 17:33:25 +01:00
Ronan Abhamon
eaa7804d81 feat(MainDb): avoid usage of prepared statements for the entire core life (prevent lock???) 2018-02-28 15:52:36 +01:00
Ronan Abhamon
10049e078f fix(Abstract): in reconnect case, disable foreign key before init call 2018-02-28 10:43:23 +01:00
Ghislain MARY
54a0a8c156 Fix wrong SQL request to insert one-to-one chat room in DB. 2018-02-27 17:13:04 +01:00
Ronan Abhamon
ab721847ba feat(SmartTransaction): don't use soci::transaction, use soci::session methods to deal directly with transactions 2018-02-27 17:12:50 +01:00
Ronan Abhamon
3f16a71960 feat(MainDb):
- Allow only move constructor/assignment operator on DbSession
- Check thread id of AbstractDb in transaction
- Fix a copy session in MainDb::init
2018-02-27 16:08:42 +01:00
Ronan Abhamon
9ea10688ef feat(AbstractDb): deal with sqlite3 logs on Android and Ios 2018-02-27 14:22:10 +01:00
Ronan Abhamon
79da08fec1 fix(MainDb): commit on markChatMessagesAsRead 2018-02-27 11:10:58 +01:00
Ronan Abhamon
e3cf0be408 fix(MainDb): use commit on deleteEvent 2018-02-27 11:02:06 +01:00