Added more local address

This commit is contained in:
Sylvain Berfini 2019-02-28 08:38:39 +01:00
parent 9a1d593191
commit f09331457b
2 changed files with 9 additions and 4 deletions

View file

@ -142,7 +142,7 @@ public class DevicesFragment extends Fragment {
private void initChatRoom() {
Core core = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
mRoom = core.getChatRoomFromUri(mRoomAddr.asStringUriOnly());
mRoom = core.getChatRoom(mRoomAddr, mLocalSipAddr);
}
private void initHeader() {

View file

@ -162,7 +162,7 @@ public class GroupInfoFragment extends Fragment implements ChatRoomListener {
if (LinphoneActivity.instance().isTablet()) {
LinphoneActivity.instance()
.goToChat(
null,
mChatRoom.getLocalAddress().asStringUriOnly(),
mGroupChatRoomAddress.asStringUriOnly(),
mShareInfos);
} else {
@ -204,7 +204,9 @@ public class GroupInfoFragment extends Fragment implements ChatRoomListener {
mChatRoom.leave();
LinphoneActivity.instance()
.goToChat(
null,
mChatRoom
.getLocalAddress()
.asStringUriOnly(),
mGroupChatRoomAddress.asString(),
null);
} else {
@ -398,7 +400,10 @@ public class GroupInfoFragment extends Fragment implements ChatRoomListener {
mChatRoom.addParticipants(participantsToAdd);
LinphoneActivity.instance()
.goToChat(null, mGroupChatRoomAddress.asString(), null);
.goToChat(
mChatRoom.getLocalAddress().asStringUriOnly(),
mGroupChatRoomAddress.asString(),
null);
}
}
});