Commit graph

230 commits

Author SHA1 Message Date
Ghislain MARY
50f4e52966 Store chat message in database before file upload so that if the file upload fails we can try sending the chat message an other time. 2017-02-03 15:29:40 +01:00
Simon Morlat
a8e4660ef3 fix memory leaks 2017-02-01 16:18:09 +01:00
Benjamin Reis
b669640847 Add message_received_unable_decrypt callback 2017-02-01 15:36:01 +01:00
Ghislain MARY
d398c2c619 Fix build. 2017-02-01 13:38:16 +01:00
Ghislain MARY
e389e34c7e Fix build of C++ wrapper on Windows. 2017-02-01 12:17:19 +01:00
Benjamin Reis
31d5d90ca9 add is_secured API to LinphoneChatMessage 2017-02-01 12:10:59 +01:00
Ghislain MARY
b297a4cb1d Rework chat handling.
- Add content type information in LIME encrypted message
 - Single entry point for all types of chat messages that are first decrypted if necessary and then handled according to their content type
 - Add possibility to send chat messages with a content type that is not 'text/plain'
 - Encrypt IMDN
2017-01-31 12:25:12 +01:00
Ghislain MARY
c446f1f424 Do not send IM notification is the chat message does not have a message id. 2017-01-25 11:39:06 +01:00
Ghislain MARY
ee077ae5ad Fix bug where IMDN messages gets encryption by LIME and the other party then treat the decrypted message as plain text. 2017-01-23 17:59:32 +01:00
Simon Morlat
656ff43b13 fix most common warnings 2017-01-14 14:13:26 +01:00
François Grisez
6160b6dbe1 Merge branch 'master' of git.linphone.org:linphone 2017-01-13 14:43:54 +01:00
François Grisez
3e037f26a0 Add a header file declaring functions exclusive for automatic wrapper generators 2017-01-13 14:08:46 +01:00
François Grisez
85b5ca097a Reworking of Liblinphone API
* Introduction of LinphoneFactory singleton class to create
  core-independent object like LinphoneAddress or LinphoneVcard.
* Make several C structures inherite from belle_sip_object_t class:
	* LinphoneCore
	* LinphoneVcard
	* LinphoneAuthInfo
* Creation of the LinphoneCoreCbs class that enable to store the
  callbacks used by LinphoneCore.
2017-01-12 17:47:01 +01:00
Sylvain Berfini
7793ff2cce Set from while sending chat message before encryption step, so if it fails information is available 2017-01-12 17:04:18 +01:00
Ghislain MARY
9fa30c5c20 Handle error cases in IMDN notifications. 2017-01-09 16:55:16 +01:00
Sylvain Berfini
4a04f3ba5a Do not increase unread message counter when sending one... 2017-01-04 17:31:22 +01:00
Ghislain MARY
e34327f58f Handle IM notification policy. 2017-01-03 14:56:56 +01:00
Ghislain MARY
f9ae431782 The (is_)read field of a LinphoneChatMessage is now deprecated, the LinphoneChatMessageStateDisplayed state is used instead. 2017-01-03 14:56:17 +01:00
Ghislain MARY
7889b0610b Store weak references of chat messages in the chat room to be able to returned the same LinphoneChatMessage object to the application. 2017-01-03 14:56:17 +01:00
Ghislain MARY
410f5b9e1c Revert message callbacks moved to LinphoneChatRoom instead of LinphoneChatMessage. 2017-01-03 14:56:17 +01:00
Ghislain MARY
9867c2fee7 Send and receive imdn. 2017-01-03 14:56:17 +01:00
Ghislain MARY
563bb427b0 Fix IM encryption engine for automatic wrapper generation. 2016-12-19 11:56:37 +01:00
Sylvain Berfini
25a6524d14 Fix chat message stored encrypted in database making it displayed as xml in mobile apps 2016-12-16 11:08:46 +01:00
Sylvain Berfini
5eb5ea3473 Fixed RTT character not being freed correctly + RTT test with SRTP failing if SRTP not available 2016-12-15 15:26:09 +01:00
Sylvain Berfini
e0fdfbb13b Added isComposing content-type to fake LinphoneChatMessage created for IM Encryption Engine incoming callback 2016-12-08 15:48:50 +01:00
Sylvain Berfini
a1d5ed8ca9 Allow IM Encryption Engine to return a custom code upon reception of a composing message 2016-12-06 10:30:21 +01:00
Sylvain Berfini
85d8e09d59 Call IM Encryption Engine outoing & incoming callbacks also for composing messages, but do nothing with lime + test 2016-12-05 12:07:11 +01:00
Sylvain Berfini
9a26b72164 Merge remote-tracking branch 'private/dev_im_encryption_engine' 2016-12-01 11:12:10 +01:00
Ghislain MARY
33b72ce6b5 Move public header files in the include/linphone directory. 2016-11-15 14:41:18 +01:00
Sylvain Berfini
d3333be071 More tests for lime file transfer + few improvements 2016-11-14 16:49:22 +01:00
Sylvain Berfini
b45e6dcc8d Added remove custom header method for chat message + test 2016-11-14 11:39:10 +01:00
Sylvain Berfini
395c81f69a Added encryption callbacks for file upload in im encryption engine 2016-11-10 15:44:32 +01:00
Sylvain Berfini
3214b4371a Reworked im encryption engine to be at linphone level instead of sal level 2016-11-10 14:33:04 +01:00
Gautier Pelloux-Prayer
dce962bf58 fix leaks 2016-07-19 12:20:24 +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
Ghislain MARY
3c0a4e15c3 Do not use deprecated ms_list_remove() function. 2016-06-27 09:30:16 +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
Gautier Pelloux-Prayer
0e082f1a40 chat: improve message_tester suites and fix memory leaks 2016-06-16 11:25:40 +02:00
Jehan Monnier
d8158669f3 add tests for lime & file transfer 2016-06-09 15:14:46 +02:00
Simon Morlat
e67e881283 change prototype of lime_freeKeys() to avoid passing a full structure by copy. 2016-06-01 19:39:21 +02:00
Gautier Pelloux-Prayer
2fc0aef1b9 gtk: add lime icon in chat 2016-05-31 17:43:46 +02:00
Gautier Pelloux-Prayer
cb9816e9fb lime.c: implement "preferred" mode 2016-05-31 16:08:35 +02:00
Sylvain Berfini
2ed0e5547c Added linphonerc field to disable RTT messages database storage 2016-05-06 15:25:11 +02:00
Sylvain Berfini
8fdfb4160a Improved chat_message_put_char method to store message if end of line character is passed + improved tester 2016-05-06 15:17:57 +02:00
Gautier Pelloux-Prayer
55900bbf66 chat: add possibility to use Lime conditionnally (when secrets have been shared only) 2016-02-25 11:30:44 +01:00
Gautier Pelloux-Prayer
30d30f60cc chat.c: dont change message state to in progress if we failed to send it (fix improper field test) 2016-02-23 10:49:13 +01:00
Simon Morlat
023f3849e1 Revert "chat.c: dont change message state to in progress if we failed to send it"
This reverts commit 17ee1f1590.
2016-02-23 01:02:47 +01:00
Gautier Pelloux-Prayer
17ee1f1590 chat.c: dont change message state to in progress if we failed to send it 2016-02-22 16:25:47 +01:00
Jehan Monnier
2a455a5fc7 remove some warnings 2016-01-19 15:39:31 +01:00