mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-25 15:18:11 +00:00
feat(Core): add tmp workaround on findChatRoom
This commit is contained in:
parent
b914ae9741
commit
d94a764999
1 changed files with 12 additions and 1 deletions
|
|
@ -105,7 +105,18 @@ const list<shared_ptr<ChatRoom>> &Core::getChatRooms () const {
|
|||
|
||||
shared_ptr<ChatRoom> Core::findChatRoom (const Address &peerAddress) const {
|
||||
L_D();
|
||||
auto it = d->chatRoomsByUri.find(getCleanedPeerAddress(peerAddress).asStringUriOnly());
|
||||
|
||||
Address cleanedAddress = getCleanedPeerAddress(peerAddress);
|
||||
auto it = d->chatRoomsByUri.find(cleanedAddress.asStringUriOnly());
|
||||
if (it != d->chatRoomsByUri.cend())
|
||||
return it->second;
|
||||
|
||||
// TODO: Remove me, temp workaround.
|
||||
cleanedAddress.setDomain(Address(linphone_core_get_conference_factory_uri(d->cCore)).getDomain());
|
||||
lWarning() << "We don't found the chat room with address " << peerAddress.asString() <<
|
||||
" as a temporary workaround, searching with " << cleanedAddress.asString();
|
||||
|
||||
it = d->chatRoomsByUri.find(cleanedAddress.asStringUriOnly());
|
||||
return it == d->chatRoomsByUri.cend() ? shared_ptr<ChatRoom>() : it->second;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue