Commit graph

94 commits

Author SHA1 Message Date
Gautier Pelloux-Prayer
f6381d913a license: update FSF address 2016-07-27 11:58:38 +02:00
Gautier Pelloux-Prayer
bf62bf20ff improve chat 2016-07-25 14:23:21 +02:00
Sylvain Berfini
554635c53b Fix crash when downloading chat message encrypted with lime using file body handler 2016-07-15 17:03:16 +02:00
Sylvain Berfini
2e086ee415 Fix iconv conversion from UTF8 to UTF8 on Android and possibly others 2016-06-28 16:27:21 +02:00
Sylvain Berfini
31dac3af4a Enabled back VFS 2016-06-28 14:18:14 +02:00
Ghislain MARY
7cf7f503cf Fix build on bb10 (however iconv is now not used on bb10, so let's hope they are using UTF-8 locales). 2016-06-24 14:07:14 +02:00
Jehan Monnier
144743535d Merge remote-tracking branch 'origin/3.10.x' 2016-06-23 14:15:38 +02:00
Ghislain MARY
b535d1f153 Use bctbx_list_t instead of MSList that has been deprecated. 2016-06-16 17:42:33 +02:00
Ghislain MARY
c13647f8bd Treat warnings as errors on Windows. 2016-06-16 12:23:53 +02:00
Sandrine Avakian
e962f84b36 VFS activation.
Using utf8 conversions, meaning converting back to Windows format on Windows
with ConvertFromUtf8Filename in sqlite3bctbx_Open.
Windows using win32  sqlite VFS methods for everything except open, read, write, close , sync, file control,
device characteristics, file size and lock related methods. Some of them are just stubs, refer to
source code.
2016-06-14 10:06:16 +02:00
Sylvain Berfini
311ddd6030 Better way to disable VFS 2016-06-13 14:43:49 +02:00
Sylvain Berfini
de2543d65c Disable VFS until all issues are resolved 2016-06-13 12:04:36 +02:00
Sylvain Berfini
00236d147f Store LinphoneContent key (when using lime) in db 2016-06-09 13:47:14 +02:00
Sylvain Berfini
ae235690ff Store LinphoneContent key (when using lime) in db 2016-06-09 11:19:37 +02:00
Simon Morlat
eaed5fe047 fix sqlite openings: don't convert to utf8 2016-06-03 10:38:06 +02:00
Ghislain MARY
fad94bc04c Fix header includes for Android. 2016-06-01 12:32:57 +02:00
Simon Morlat
aba70a4afa don't make our sqlite vfs the default for all the process, because it conflicts with other use of sqlite (in ios apis for example) 2016-05-31 11:34:33 +02:00
Simon Morlat
57561bb120 fix compilation error with no sqlite support 2016-05-20 13:55:00 +02:00
Simon Morlat
b79535afe9 fix automake build and simplify sqlite enablement options 2016-05-20 09:37:53 +02:00
Sandrine Avakian
6cfac0ff44 Using newly created functions bctbx_file_close_and_free, bctbx_file_create_and_open. in lpconfig.c.
Changing check on file descriptor return value : should be different from -1 if open was successful .
Using bctbx_file_open and bctbx_file_close in sqlite3bctbx_Open and sqlite3bctbx_Close.
Registers the VFS as default incall_log.c, friend.c and mesage_storage.c .
2016-05-17 11:11:49 +02:00
Sandrine Avakian
fea70fc4ce Merge branch 'master' of git.linphone.org:linphone into bc_vfs 2016-05-12 10:38:07 +02:00
Sandrine Avakian
c400e2f563 First use of sqlite3 bctbx custom vfs. 2016-05-12 10:36:58 +02:00
Simon Morlat
fa00efddbb fix memory leak in JNI getHistory() 2016-05-10 16:03:14 +02:00
Simon Morlat
60708a53ab repair message storage 2016-01-06 17:40:36 +01:00
Gautier Pelloux-Prayer
218db02a1a submodules: update ms2 to fix music pause on iOS 2016-01-06 15:12:09 +01:00
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