Commit graph

51 commits

Author SHA1 Message Date
Ghislain MARY
5290d59d76 Various fixes regarding callbacks of chat rooms. 2018-04-05 17:09:15 +02:00
Ghislain MARY
5fb8f9686a Handle incoming INVITE from conference server to create ClientGroupChatRoom. 2018-04-05 15:00:11 +02:00
Ghislain MARY
b9eaf0a7e9 Prevent ChatRoom C++ objects from being leaked. 2018-03-09 10:20:20 +01:00
Ronan Abhamon
badcd4c536 fix(CoreChatRoom): typo 2018-03-06 09:22:26 +01:00
Ronan Abhamon
76342c715f feat(MainDb): reworking, better code (performance and fixes) 2018-03-05 17:25:48 +01:00
Benjamin Reis
4b111911ed check capabilities before addresses to compare faster 2018-03-05 15:36:38 +01:00
Ghislain MARY
95c39b0e1a Configure the conference factory uri on the proxy config instead of the core. 2018-03-05 14:29:01 +01:00
Jehan Monnier
8b0f60894b fix findOneToOneChatRoom in case of chatroom has no participant in 2018-03-05 13:29:41 +01:00
Benjamin Reis
ea838faff2 Fix find_one_to_one_chatroom and add a test to avoir its regression 2018-03-02 09:25:02 +01:00
Ronan Abhamon
13182409bf fix(Core): do not use map[] to test presence of element, [] create an item if not exist 2018-02-20 14:15:47 +01:00
Ghislain MARY
1b5e00e705 Fix assert when inserting a chat room in DB. 2018-02-20 12:05:59 +01:00
Ghislain MARY
25d8ff142d Improve loading of chat rooms. 2018-02-20 10:32:49 +01:00
Ghislain MARY
c7454fa89e Fix Core::insertChatRoom(). 2018-02-16 17:38:06 +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
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
5c635ab5c2 fix(core-chat-room): add a workaround to deal with destroyed chat rooms 2018-01-23 17:35:27 +01:00
Ronan Abhamon
26ad07a02e feat(core): update date of some files 2018-01-15 09:17:54 +01:00
Ronan Abhamon
50244176a6 fix(core-chat-room): coding style 2018-01-03 09:45:14 +01:00
Ghislain MARY
6b59aef7ce Add config parameter to enable basic to client group chat room migration. 2017-12-27 11:21:05 +01:00
Benjamin Reis
47943bf874 adapt findOneToOneChatroom to both basic and clientGroup 2017-12-22 16:37:42 +01:00
Benjamin Reis
fe8930cecd notify fallbacked chat room creation 2017-12-22 16:11:32 +01:00
Ronan Abhamon
fb8d255b4f feat(CoreChatRoom): do not create BasicToClientGroupChatRoom if not factory uri configured 2017-12-22 14:29:41 +01:00
Ronan Abhamon
30389fd9ab fix(BasicToClientGroupChatRoom): Capabilities mask contains Migratable 2017-12-22 10:25:16 +01:00
Ghislain MARY
5ff2076896 Handle basic to client group chat room migration. 2017-12-21 18:48:39 +01:00
Ghislain MARY
1f15bc62c8 Do not create a fallback chatroom when invited to a group chat room. 2017-12-21 18:44:38 +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
a531204489 fix(BasicChatRoom): do not notify chat room state when it is fetched from database 2017-12-07 17:25:44 +01:00
Ghislain MARY
8783aca2db No longer need cCore property in Core C++ object. 2017-12-04 16:59:03 +01:00
Ronan Abhamon
e9805213e2 fix(conference): replace getNbParticipants to participantCount 2017-12-04 15:49:53 +01:00
Ghislain MARY
2f1d16a306 Use c-wrapper for the Core object. 2017-12-04 13:56:32 +01:00
Ronan Abhamon
310637f275 feat(core): add a find one to one chat room function 2017-11-30 14:32:36 +01:00
Ronan Abhamon
daf2432e1d fix(core-chat-room): do not remove from db if chat room is not in ram 2017-11-27 09:21:46 +01:00
Ronan Abhamon
65978c70ad feat(MainDb): insert participants on chat room insertion 2017-11-24 15:57:37 +01:00
Ronan Abhamon
98d0ae00b0 feat(MainDb): add logs on chat rooms fetch 2017-11-23 16:07:35 +01:00
Ronan Abhamon
a2f363ac64 fix(MainDb): insert chatroom subject properly 2017-11-23 15:02:48 +01:00
Ghislain MARY
23000b1ec9 Remove workaround on chat room ids. 2017-11-23 10:01:10 +01:00
Ronan Abhamon
46a194d5b3 feat(core): add findChatRooms impl 2017-11-17 15:49:45 +01:00
Ghislain MARY
902cb50104 Merge SimpleAddress and GruuAddress classes into a single IdentityAddress class. 2017-11-16 16:05:18 +01:00
Ghislain MARY
f117ff958c Fix chat related code that was broken with the introduction of ChatRoomId. 2017-11-16 14:08:36 +01:00
Ronan Abhamon
105e63f271 feat(core): provide a local address on chat room (the core is dead now) 2017-11-15 14:47:06 +01:00
Ghislain MARY
120117f7b3 Add the SimpleAddress class to ease the comparison of addresses for the conference participants and the list of chat rooms. 2017-11-07 15:27:09 +01:00
Ronan Abhamon
cb045ce1b1 fix(ChatRoom): rename some functions 2017-11-06 09:17:53 +01:00
Ronan Abhamon
a7ff19566d fix(core): misc =>
- return nullptr if conference factory uri is not set
  - Address object is now more robust
  - remove custom SharedFromThis object
  - CoreAccessor throw exception if core is destroyed
  - Core must be created with a static method
  - Partial fetch of chat message
  - ...
2017-11-03 10:38:50 +01:00
Ronan Abhamon
223bd817a9 feat(core): break completely old message storage api impl 2017-11-02 12:03:16 +01:00
Sylvain Berfini
53c83d3585 Fixed ChatRoom state changed with Created state before RAM insertion breaking find 2017-10-31 17:34:13 +01:00
Ronan Abhamon
edf85afab9 fix(Core): use better workaround for bad conference sip addresses returned by flexisip 2017-10-30 11:56:56 +01:00
Ronan Abhamon
43947bee19 fix(Core): more robust deleteChatRoom impl 2017-10-30 09:35:49 +01:00
Ronan Abhamon
f337228785 fix(Core): fix log text 2017-10-30 09:25:57 +01:00
Sylvain Berfini
f276a82f46 Fixed crash in deleteChatRoom 2017-10-27 16:42:59 +02:00
Ronan Abhamon
d94a764999 feat(Core): add tmp workaround on findChatRoom 2017-10-27 14:58:27 +02:00