Commit 9c50bca0 authored by Sylvain Berfini's avatar Sylvain Berfini

Fix issue with composing notification and improved chatroom creation in wrapper

parent e55c717e
......@@ -1371,7 +1371,7 @@ Linphone::Core::LinphoneChatRoom^ Linphone::Core::LinphoneCore::CreateChatRoom(P
{
gApiLock.Lock();
const char* address = Linphone::Core::Utils::pstoccs(to);
Linphone::Core::LinphoneChatRoom^ chatRoom = (Linphone::Core::LinphoneChatRoom^) Linphone::Core::Utils::CreateLinphoneChatRoom(linphone_core_create_chat_room(this->lc, address));
Linphone::Core::LinphoneChatRoom^ chatRoom = (Linphone::Core::LinphoneChatRoom^) Linphone::Core::Utils::CreateLinphoneChatRoom(linphone_core_get_or_create_chat_room(this->lc, address));
delete(address);
gApiLock.Unlock();
......
......@@ -118,6 +118,9 @@ namespace Linphone.Views
cm.FindContact(sipAddress);
chatRoom = LinphoneManager.Instance.LinphoneCore.CreateChatRoom(sipAddress);
bool isRemoteComposing = chatRoom.IsRemoteComposing();
Debug.WriteLine("[Chat] Is remote composing ? " + isRemoteComposing);
RemoteComposing.Visibility = isRemoteComposing ? Visibility.Visible : Visibility.Collapsed;
if (e.NavigationMode != NavigationMode.Back)
{
......@@ -588,10 +591,10 @@ namespace Linphone.Views
if (chatRoom == null)
return;
bool isRemoteComposing = chatRoom.IsRemoteComposing();
Dispatcher.BeginInvoke(() =>
{
bool isRemoteComposing = chatRoom.IsRemoteComposing();
Debug.WriteLine("[Chat] Is remote composing ? " + isRemoteComposing);
RemoteComposing.Visibility = isRemoteComposing ? Visibility.Visible : Visibility.Collapsed;
scrollToBottom();
});
......
linphone @ abb7c2d5
Subproject commit aeb99d09d9a963e9c4f669b1dbf0f2c86e0088c6
Subproject commit abb7c2d50c948f4ef8715b6d58f0e8eeb43e7845
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