[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] LinphoneChatRoom PeerAddress is not getting update

From: Yonatan Nir
Subject: [Linphone-developers] LinphoneChatRoom PeerAddress is not getting updated
Date: Mon, 15 Jun 2015 13:37:14 +0000

Hi all,

I'm trying to create a new LinphoneChatRoom using this code:

public void createNewChatRoom(String destination, String name)
        LinphoneChatRoom[] rooms = core.getChatRooms();
        for (LinphoneChatRoom room : rooms)
            Log.d("name1: " + room.getPeerAddress().getDisplayName());
        LinphoneChatRoom room = core.getOrCreateChatRoom(destination);
        if (room != null)
        rooms = core.getChatRooms();
        for (LinphoneChatRoom room2 : rooms)
            Log.d("name2: " + room2.getPeerAddress().getDisplayName());

During the first iteration on the rooms (name1 iteration) all of the display names I'm getting are null. At the second iteration over the rooms (name2 iteration), There is indeed a new room that was added and the array is +1 in size, but again, all the display names are null even though I just set it.
Why is this happening?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]