Commit graph

207 commits

Author SHA1 Message Date
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
Ghislain MARY
359b7bde4b Handle one-to-one chat rooms and quit the client group chat room when deleting it. 2018-01-25 11:51:20 +01:00
Ronan Abhamon
75cbb76945 feat(MainDb): add a findOneToOneConferenceChatRoomAddress method 2018-01-18 16:59:33 +01:00
Ronan Abhamon
26ad07a02e feat(core): update date of some files 2018-01-15 09:17:54 +01:00
Ronan Abhamon
bbd6c58dfd feat(MainDb): disable friends migration, enable this after friends cpp migration 2018-01-08 11:36:49 +01:00
Ronan Abhamon
335f19b20b feat(MainDb): legacy friends import 2018-01-08 11:36:49 +01:00
Ronan Abhamon
dc830c181a fix(MainDb): check history table presence on import (workaround for android/soci) 2018-01-08 10:33:15 +01:00
Ronan Abhamon
5a9d0dfd3e feat(BasicToClientGroupChatRoom): capabilities contains Migrate if the proxy is a basic chatroom 2017-12-22 12:42:54 +01:00
Ronan Abhamon
67053e8e8e fix(MainDb): rename insertOrUpdateBasicChatRoom to insertOrUpdateImportedBasicChatRoom 2017-12-22 10:40:18 +01:00
Ronan Abhamon
b51fd2e414 fix(MainDb): use transactions in unsafe functions 2017-12-22 10:38:29 +01:00
Ghislain MARY
5ff2076896 Handle basic to client group chat room migration. 2017-12-21 18:48:39 +01:00
Ronan Abhamon
0e0ae5b546 feat(MainDb): add participants and devices on basic to client group chat room migration 2017-12-21 16:06:01 +01:00
Ronan Abhamon
0304c37625 feat(MainDb): add method to migrate basic to client group chat room 2017-12-21 15:42:40 +01:00
Ronan Abhamon
3f7a82b985 fix(MainDb): use 255 chars for the storage of db_module_version.name instead of 16 2017-12-19 15:22:12 +01:00
Ronan Abhamon
f047ea775b feat(MainDb): support fetch of participant devices 2017-12-19 15:00:25 +01:00
Ronan Abhamon
e93ed1cc3f fix(MainDb): do not update module version if it is unchanged 2017-12-19 14:24:13 +01:00
Ronan Abhamon
43e775bff2 feat(MainDb): FilterMask is now an EnumMask type 2017-12-19 11:56:33 +01:00
Ronan Abhamon
fd191aa675 feat(MainDb): remove static_cast on capabilities 2017-12-19 11:33:12 +01:00
Ronan Abhamon
2e0dd7907f feat(MainDb): enable legacy history import 2017-12-18 17:37:16 +01:00
Ronan Abhamon
cc0a509a97 feat(MainDb): add an events module with 1.0.0 version 2017-12-18 15:31:12 +01:00
Ronan Abhamon
28944e466e feat(MainDb): add new table db_module_version 2017-12-18 11:42:22 +01:00
Ronan Abhamon
4cdb46496e feat(AbstractDb): add a noLimitValue function to deal with LIMIT keyword properly 2017-12-15 10:48:50 +01:00
Ronan Abhamon
707d94c34e fix(MainDb): deal with blobs with MySql backend 2017-12-13 17:35:23 +01:00
Ronan Abhamon
20a64ff1e3 fix(MainDb): LIMIT -1 is not supported by Mysql 2017-12-13 17:06:31 +01:00
Ronan Abhamon
8aca567aaa fix(MainDb): damn it 2017-12-13 15:47:45 +01:00
Ronan Abhamon
23e542c238 fix(MainDb): disable participant message deleter creation, problem with mysql 2017-12-13 15:43:48 +01:00
Ronan Abhamon
8015fec51c fix(MainDb): repair db init with mysql, event_id key must be BIGINIT UNSIGNED on conference_subject_event 2017-12-13 15:30:41 +01:00
Ronan Abhamon
9258c5f145 feat(ChatRoom): provide an abstract chat room for chat room migration proxy 2017-12-12 16:07:49 +01:00
Ronan Abhamon
d98b3a6b33 fix(MainDb): do not notify chat room creation on fetch 2017-12-08 14:21:49 +01:00
Ronan Abhamon
a02165ab81 fix(MainDb): do not execute query outside exception handler in get history range 2017-12-08 11:14:18 +01:00
Ronan Abhamon
dff49bec34 fix(MainDb): use blob for soci 4 (app data) 2017-12-08 10:43:23 +01:00
Ronan Abhamon
a76f869d66 fix(MainDb): set a default value if subject is empty on get chat rooms 2017-12-07 16:50:02 +01:00
Ronan Abhamon
65d98ad4d2 fix(MainDb): update correctly last update time on chat room in import case 2017-12-07 14:07:04 +01:00