Fix creation chat room for 1 contact

This commit is contained in:
Erwan Croze 2018-07-30 10:02:56 +02:00
parent 0df1b46409
commit 1e43d0e698

View file

@ -398,7 +398,9 @@ public class ChatCreationFragment extends Fragment implements View.OnClickListen
if (lpc != null && lpc.getConferenceFactoryUri() != null && !LinphonePreferences.instance().useBasicChatRoomFor1To1()) {
mChatRoom = lc.createClientGroupChatRoom(getString(R.string.dummy_group_chat_subject), false);
mChatRoom.addListener(mChatRoomCreationListener);
mChatRoom.addParticipant(participant);
Address participants[] = new Address[1];
participants[0] = participant;
mChatRoom.addParticipants(participants);
} else {
chatRoom = lc.getChatRoom(participant);
LinphoneActivity.instance().goToChat(chatRoom.getPeerAddress().asStringUriOnly(), mShareInfos);