Fix for chat room creation from call
This commit is contained in:
parent
86299287c9
commit
a9cb1807e6
1 changed files with 7 additions and 2 deletions
|
@ -364,8 +364,13 @@ public class GroupChatFragment extends Fragment implements ChatRoomListener, Con
|
||||||
//TODO error
|
//TODO error
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Address proxyConfigContact = lc.getDefaultProxyConfig().getContact();
|
||||||
mChatRoom = core.getChatRoomFromUri(mRemoteSipAddress.asString());
|
if (proxyConfigContact != null) {
|
||||||
|
mChatRoom = lc.findOneToOneChatRoom(proxyConfigContact, mRemoteSipAddress);
|
||||||
|
}
|
||||||
|
if (mChatRoom == null) {
|
||||||
|
mChatRoom = core.getChatRoomFromUri(mRemoteSipAddress.asStringUriOnly());
|
||||||
|
}
|
||||||
mChatRoom.setListener(this);
|
mChatRoom.setListener(this);
|
||||||
mChatRoom.markAsRead();
|
mChatRoom.markAsRead();
|
||||||
LinphoneActivity.instance().updateMissedChatCount();
|
LinphoneActivity.instance().updateMissedChatCount();
|
||||||
|
|
Loading…
Reference in a new issue