Commit graph

69 commits

Author SHA1 Message Date
Simon Morlat
f922907fd8 repair jni compilation 2015-12-27 12:35:50 +01:00
Gautier Pelloux-Prayer
87fa413ec4 message_storage.c: do not rebuild peer address for each DB message since it is already available in chat room structure 2015-11-20 14:59:07 +01:00
Gautier Pelloux-Prayer
91352ffccd message_storage.c: remove invalid assert in linphone_chat_room_delete_message and force recomputation of unread messages count after removal, since database is not synced anymore with chat messages in memory 2015-11-18 13:27:35 +01:00
Simon Morlat
ee92fdcf4c fix sqlite database access mode for iOS, where default write modes don't allow writing in background mode. 2015-11-16 10:28:05 +01:00
Simon Morlat
e14852711b fix crash in linphone_core_create_call_params(), try to workaround an sqlite problem on iOS 2015-11-12 12:23:21 +01:00
François Grisez
2cdedebd81 Fix compilation error 2015-10-02 17:41:18 +02:00
Ghislain MARY
5a629de3de Tell sqlite3 to work only in memory because some platforms do not support working with temporary files. 2015-10-02 17:29:57 +02:00
Sylvain Berfini
cabf15f1f5 Store call logs in sql database + new method to get all call logs related to a linphone address 2015-09-08 02:45:32 +02:00
Simon Morlat
cf6995ef5c clean chat room api.
fix multiple memory leaks, mainly in gtk UI
2015-09-04 14:57:25 +02:00
Simon Morlat
9f2b9df16a Revert "chat: fix crash when receiving message status notification AFTER having deleted the chat room"
This reverts commit 08e923a41c.
This commit breaks compilation.
2015-09-03 21:29:44 +02:00
Gautier Pelloux-Prayer
08e923a41c chat: fix crash when receiving message status notification AFTER having deleted the chat room 2015-09-03 17:07:52 +02:00
Gautier Pelloux-Prayer
434907917e chat.c: properly clean filetransfer when it failed for io error and/or server issue 2015-09-02 14:33:40 +02:00
Gautier Pelloux-Prayer
bce114c25a message_storage.c: fix previous commit, remove debug code 2015-09-02 09:36:31 +02:00
Gautier Pelloux-Prayer
a722c76515 message_storage.c: minor refactoring 2015-09-01 16:36:26 +02:00
Simon Morlat
7247525fb9 fix crash on windows due to incorrect usage of MultiByteToWideChar() 2015-08-24 10:00:19 +02:00
François Grisez
36eea822d2 Add a cache for unread messagaes count in LinphoneChatRoom
That fix a performance issue when typing a message. The sqlite database
was accessed each time a character was typed in order to mark all
preceeding messages as read. That was done even if all message was marked
as read.

This patch add cache for unread messages count. Then, the count is only carried out
at the first call of linphone_chat_room_get_unread_messages_count(). This function
is used in linphone_chat_room_mark_as_read() to prevent database from being accessed
if all messages are already marked as read.
2015-07-22 23:56:19 +02:00
Ghislain MARY
8722f8a990 Add Visual Studio project for Windows 10. 2015-07-03 16:56:14 +02:00
Sylvain Berfini
566df1413d Fix compilation for bb10 2015-03-02 12:23:55 +01:00
Simon Morlat
0d4048dbdf fix android compilation 2015-02-25 21:55:39 +01:00
François Grisez
cde2d55d84 Fix charset issue with sqlite3_open()
sqlite3_open() requires that the path is encoded into UTF-8
2015-02-25 17:00:39 +01:00
François Grisez
2e9036f365 Fix crach on windows: avoid creating message storage database when the SQLite file cannot be opened 2015-02-20 15:17:02 +01:00
Simon Morlat
13bacf87c9 fix compilation warning update ms2 2014-11-27 10:18:37 +01:00
Guillaume BIENKOWSKI
e87403f324 Use a debug message instead of message for timing measurements 2014-11-26 13:53:19 +01:00
Guillaume BIENKOWSKI
06de47db2e Fix a special case in message history retrieval.
This function is not yet completely tested,
2014-11-26 13:53:19 +01:00
Guillaume BIENKOWSKI
8934000867 Fix message tester when no storage is used 2014-11-24 11:53:43 +01:00
Ghislain MARY
35189535a7 Convert LinphoneContent from a simple struct to a belle-sip object to ease generation of wrappers. 2014-11-18 16:42:16 +01:00
Gautier Pelloux-Prayer
e45b7bc3f0 Fix database time migration for Android: store time_t as 64bits in database 2014-11-12 15:10:26 +01:00
Gautier Pelloux-Prayer
0892bd026d Fix method linphone_chat_room_get_history which returned one extra message + fix memory leaks in message storage tester 2014-11-05 12:10:15 +01:00
Simon Morlat
54e6f89dac fix message state whose storage in db was broken 2014-10-17 11:25:28 +02:00
Simon Morlat
d90dc113b2 fix format specifiers 2014-10-15 13:57:34 +02:00
Sylvain Berfini
4be7d1c931 Fix message_storage for WP8 2014-10-15 12:31:56 +02:00
Sylvain Berfini
d268f4ab98 Fixed message storage for sent files + fixed update state sql request for sent files 2014-09-12 11:51:57 +02:00
Gautier Pelloux-Prayer
e67ce6d91b Use strictness improved version in oRTP too 2014-09-11 17:13:03 +02:00
Gautier Pelloux-Prayer
717db9fd8d Improved strict compilation flags 2014-09-11 15:46:05 +02:00
Sylvain Berfini
e9a376a014 LinphoneContent stored in database + few changes on Java API regarding file transfer 2014-09-11 12:14:35 +02:00
Gautier Pelloux-Prayer
c8bd7e1007 Fix android writable dir for tests 2014-08-20 09:31:55 +02:00
Gautier Pelloux-Prayer
c53f70e256 Fix erroneous documentation from conversation history new methods 2014-08-19 15:06:50 +02:00
Gautier Pelloux-Prayer
e745c956e7 Add method to retrieve size of a conversation history and a part of it 2014-08-19 11:31:40 +02:00
Simon Morlat
61d1f7b5de allow fps change in linphone_core_update_call() 2014-08-13 19:25:33 +02:00
Guillaume BIENKOWSKI
a29a93cd76 Add an API to set and retrieve chat messages "app data". This allows clients to store resilient data for each messages 2014-06-02 14:06:03 +02:00
Simon Morlat
00fa127aec fix format specifier again 2014-05-30 08:41:32 +02:00
Simon Morlat
1a2e24b14a update mediastreamer2 to fix big regression with vp8 and h264
fix printf formatter to be compatible with visual studio
2014-05-29 14:54:09 +02:00
Guillaume BIENKOWSKI
b56095f59f Add API to debug sqlite timings, and a test to profile the message migration 2014-05-28 14:53:30 +02:00
Guillaume BIENKOWSKI
1a89e8a174 Use a transaction for message migration. On 10000 messages, we have a 20x speedup. 2014-05-28 14:26:14 +02:00
Simon Morlat
dbbea2a41c add debug message to indicate duration of sqlite request 2014-05-28 11:35:31 +02:00
Guillaume BIENKOWSKI
43e42a55f5 Better fix: just in case, don't use the storage id and use a better search condition. 2014-05-22 14:40:42 +02:00
Guillaume BIENKOWSKI
76a5f51e35 Use storage id for storing the message state, instead of filtering by message and time.
This was historically used because notifications of the new message state would supposedly be made with a new instance of the same message, so without a correct storage_id.
I verified that this is not the case anymore.
2014-05-22 13:41:53 +02:00
Simon Morlat
78e59e5bec suppress warnings 2014-05-21 16:04:11 +02:00
Guillaume BIENKOWSKI
0dce1b41db Don't use printf 2014-05-20 11:16:38 +02:00
Guillaume BIENKOWSKI
20c646bc4a Allow multiple calls to linphone_core_message_storage_init 2014-05-20 10:49:34 +02:00