Commit graph

342 commits

Author SHA1 Message Date
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
Ronan Abhamon
223b1244e7 fix(setChatMessageParticipantState): use commit on setChatMessageParticipantState 2018-02-27 10:57:04 +01:00
Ronan Abhamon
729a9f5cfb fix(DbExceptionHandler): use r-value reference on function 2018-02-27 10:56:35 +01:00
Ronan Abhamon
1d46c11739 fix(SmartTransaction): log commit only after soci commit 2018-02-26 17:17:56 +01:00
Ronan Abhamon
5542d4e0f0 fix(SmartTransaction): do not log rollback if transaction is committed 2018-02-26 17:07:42 +01:00
Ronan Abhamon
9c16f13ac3 feat(SmartTransaction): explicit class name in log 2018-02-26 15:53:32 +01:00
Ronan Abhamon
86493a151c feat(MainDb): avoid usage of explicit transactions 2018-02-26 15:41:47 +01:00
Ronan Abhamon
8129b19ffc feat(MainDb): use last update time on insert chat room 2018-02-26 15:10:22 +01:00
Ronan Abhamon
89a62c4428 feat(MainDb): forward transaction in with lambda 2018-02-26 14:43:43 +01:00
Ronan Abhamon
c0e48a8339 feat(MainDb): add a SmartTransaction component to log start/end 2018-02-26 13:50:05 +01:00
Ronan Abhamon
ac482f58b7 fix(MainDb): fix sql lock 2018-02-23 17:22:05 +01:00
Ronan Abhamon
e0b2b41290 Many things:
- Provide a StaticString object to build const char* at compile time
  - Use StaticString in MainDb to transforms enum in const char* automatically (events filters)
  - In future: Abuse of this component in MainDb to build queries easily between Mysql/Sqlite3
2018-02-23 16:17:58 +01:00
Ronan Abhamon
07b33a419e fix(MainDb): add braces!! 2018-02-23 11:57:46 +01:00
Ronan Abhamon
1f8f765277 fix(MainDb): add a compatible trigger char message participant deleter with mysql 2018-02-23 11:42:32 +01:00
Ronan Abhamon
8e7791e3ea fix(MainDb): conference_event_view supports correctly mysql and mariaDb 2018-02-23 10:48:57 +01:00
Ronan Abhamon
4b5e950d01 fix(MainDb): disable db lock for Android 2018-02-22 16:55:09 +01:00
Ronan Abhamon
6d3d535fd9 fix(MainDb): order by event_id in getHistoryRange 2018-02-22 15:19:54 +01:00
Ronan Abhamon
71f5e47cff feat(MainDb): remove order by on events fetch 2018-02-22 13:18:40 +01:00
Ronan Abhamon
a12a229720 feat(MainDb): use prepared statements 2018-02-21 18:05:42 +01:00
Ronan Abhamon
963811044b feat(MainDb): use prepared statements for some functions 2018-02-21 16:42:18 +01:00
Ronan Abhamon
a38031e182 fix(MainDb): conference_event_view is compatible with mysql 2018-02-21 13:48:46 +01:00
Ronan Abhamon
e12f146b84 fix(MainDb): ConferenceInfoNoDeviceFilter must be equals to a 2-power 2018-02-19 12:16:44 +01:00
Ronan Abhamon
709dceac26 feat(core): use other instead of src/obj name on operators and copy constructors (uniform syntax) 2018-02-19 09:58:14 +01:00
Simon Morlat
cb45d54d1a fix compilation issue (unused parameter this) 2018-02-16 18:27:39 +01:00
Ronan Abhamon
07443b1f60 feat(MainDb): increase performance of get history range 2018-02-16 17:21:47 +01:00
Ghislain MARY
babe09e560 Add tester for migration of messages database + load chat rooms from DB after migration + fix duplicated sip addresses in database during migration. 2018-02-16 15:29:00 +01:00
Benjamin Reis
068cd9ce45 do not fetch device event in chat room history 2018-02-15 13:38:58 +01:00
Simon Morlat
9fead71899 Fix crash during migration on Android by avoiding to throw exceptions. Apparently exceptions do not work reliabily on android, at least not with our current toolchain and compilation options. 2018-02-15 12:50:26 +01:00
Ghislain MARY
91bce6e695 Correctly handle IMDN for group chat. 2018-02-14 18:10:38 +01:00
Ghislain MARY
87921f7376 Fix invalid cast when using MySQL as database backend. 2018-02-14 17:46:33 +01:00