Commit 64e74b6e authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix multipart tester.

parent 1b9c79b9
......@@ -40,9 +40,11 @@ static void chat_message_multipart_modifier_base(bool first_file_transfer, bool
LinphoneCoreManager* marie = linphone_core_manager_new("marie_rc");
LinphoneCoreManager* pauline = linphone_core_manager_new("pauline_tcp_rc");
IdentityAddress paulineAddress(linphone_address_as_string_uri_only(pauline->identity));
shared_ptr<AbstractChatRoom> marieRoom = pauline->lc->cppPtr->getOrCreateBasicChatRoom(paulineAddress);
static_pointer_cast<BasicChatRoom>(marieRoom)->allowMultipart(true);
char *paulineUriStr = linphone_address_as_string_uri_only(pauline->identity);
IdentityAddress paulineAddress(paulineUriStr);
bctbx_free(paulineUriStr);
shared_ptr<AbstractChatRoom> marieRoom = marie->lc->cppPtr->getOrCreateBasicChatRoom(paulineAddress);
marieRoom->allowMultipart(true);
shared_ptr<ChatMessage> marieMessage = marieRoom->createChatMessage();
if (first_file_transfer) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment