Commit graph

239 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Ronan Abhamon
25d05ede90 Revert "feat(MainDb): better performances"
This reverts commit afe6bca958.
2018-02-14 16:52:51 +01:00
Ronan Abhamon
afe6bca958 feat(MainDb): better performances 2018-02-14 16:46:27 +01:00
Ronan Abhamon
c20c54a284 feat(MainDb): improve performance of selectSipAddressId and selectChatRoomId 2018-02-14 15:01:33 +01:00
Ronan Abhamon
076c7715ec feat(MainDb): delete chat_message_participant when message is displayed 2018-02-14 11:36:28 +01:00
Ronan Abhamon
09bc70d1fd feat(RemoteConferenceEventHandler): try to simplify code of simpleNotifyReceived (not a success...) 2018-02-13 15:54:24 +01:00
Ronan Abhamon
aba6043b8b fix(MainDb): remove CHECK_LEGACY_TABLE_EXISTS macro 2018-02-13 14:12:20 +01:00
Ronan Abhamon
21e426b98d fix(MainDb): use constexpr instead of define 2018-02-13 14:07:50 +01:00
Ronan Abhamon
cbb14ad1cf feat(MainDb): attach resolveId to DbSession 2018-02-13 13:56:49 +01:00
Ronan Abhamon
593c48faaf feat(General): replace L_VERSION macro by makeVersion constexpr func (better and safe) 2018-02-13 10:33:59 +01:00
Ronan Abhamon
66a6499f56 fix(MainDb): remove constexpr on exec (unsupported on android in this case) 2018-02-13 10:22:54 +01:00
Ghislain MARY
57687e1b99 Handle fetching a participant device's state from database. 2018-02-13 09:57:59 +01:00
Ronan Abhamon
79c5e8e0ab fix(MainDb): remove useless check on migrateBasicToClientGroupChatRoom 2018-02-13 09:32:14 +01:00
Ronan Abhamon
68bb9a1224 feat(MainDb): exec on SafeTransaction is now constexpr 2018-02-13 09:30:31 +01:00
Ronan Abhamon
cefa3cb85a feat(MainDb): better code, L_SAFE_TRANSACTION supports query without returned value 2018-02-13 09:24:28 +01:00
Ronan Abhamon
589a0393b4 fix(MainDb): handle exception after reconnect in SafeTransaction 2018-02-12 15:43:22 +01:00
Ghislain MARY
68ce70b072 Allow storage of participant device state in database. 2018-02-12 14:47:46 +01:00
Ronan Abhamon
6858207bc2 feat(MainDb): add a security to delete basic chat room on migration when peer sip address is a server sip address chat room 2018-02-09 10:58:12 +01:00
Mickaël Turnel
511a4d3099 Fix wrong behavior of operator overloading in Clang 8.0 2018-02-05 14:17:13 +01:00
Jehan Monnier
4c89ac95e2 make sure db is reconnected on « unknown error » 2018-02-01 15:32:10 +01:00
Ghislain MARY
76c5214aaf Fix markChatMessagesAsRead(). 2018-02-01 13:38:59 +01:00
Ronan Abhamon
891df5ff10 fix(MainDb): add missing transactions on little req, add safety 2018-02-01 11:18:40 +01:00
Sylvain Berfini
30f90763c4 Improve isFile use in Contents for FileTransfer 2018-01-30 14:56:59 +01:00
Ghislain MARY
e49f2fedda Handle re-invite of a participant that has left a one-to-one chat room when the other participant sends a message. 2018-01-26 14:30:34 +01:00
Ronan Abhamon
9072624acb feat(AbstractDb): add a way to deal with exceptions 2018-01-25 17:07:16 +01:00