Fixed chat room creation issues
This commit is contained in:
parent
1a42eb7802
commit
83dbf54c9d
2 changed files with 9 additions and 2 deletions
|
@ -328,9 +328,14 @@ public class GroupInfoFragment extends Fragment implements ChatRoomListener {
|
|||
false,
|
||||
mIsEncryptionEnabled);
|
||||
mTempChatRoom.addListener(mChatRoomCreationListener);
|
||||
|
||||
int i = 0;
|
||||
Address[] participantsToAdd = new Address[mParticipants.size()];
|
||||
for (ContactAddress ca : mParticipants) {
|
||||
mTempChatRoom.addParticipant(ca.getAddress());
|
||||
participantsToAdd[i] = ca.getAddress();
|
||||
i++;
|
||||
}
|
||||
mTempChatRoom.addParticipants(participantsToAdd);
|
||||
} else {
|
||||
// Subject
|
||||
String newSubject = mSubjectField.getText().toString();
|
||||
|
|
|
@ -235,7 +235,9 @@ public class HistoryDetailFragment extends Fragment implements OnClickListener {
|
|||
lc.createClientGroupChatRoom(
|
||||
getString(R.string.dummy_group_chat_subject), true);
|
||||
mChatRoom.addListener(mChatRoomCreationListener);
|
||||
mChatRoom.addParticipant(participant);
|
||||
Address participants[] = new Address[1];
|
||||
participants[0] = participant;
|
||||
mChatRoom.addParticipants(participants);
|
||||
} else {
|
||||
room = lc.getChatRoom(participant);
|
||||
LinphoneActivity.instance()
|
||||
|
|
Loading…
Reference in a new issue