mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
fix(MainDb): remove useless check on migrateBasicToClientGroupChatRoom
This commit is contained in:
parent
68bb9a1224
commit
79c5e8e0ab
1 changed files with 0 additions and 13 deletions
|
|
@ -2556,19 +2556,6 @@ void MainDb::migrateBasicToClientGroupChatRoom (
|
|||
const long long &localSipAddressId = d->insertSipAddress(newChatRoomId.getLocalAddress().asString());
|
||||
const int &capabilities = clientGroupChatRoom->getCapabilities();
|
||||
|
||||
{
|
||||
shared_ptr<AbstractChatRoom> buggyChatRoom = getCore()->findChatRoom(newChatRoomId);
|
||||
if (buggyChatRoom) {
|
||||
lError() << "Chat room was found with the same chat room id of a new migrated ClientGroupChatRoom!!!";
|
||||
AbstractChatRoom::CapabilitiesMask capabilities = buggyChatRoom->getCapabilities();
|
||||
if (capabilities & AbstractChatRoom::Capabilities::Basic) {
|
||||
lError() << "Delete invalid basic chat room...";
|
||||
Core::deleteChatRoom(buggyChatRoom);
|
||||
} else
|
||||
lError() << "Unable to delete invalid chat room with capabilities: " << capabilities << ".";
|
||||
}
|
||||
}
|
||||
|
||||
*session << "UPDATE chat_room"
|
||||
" SET capabilities = :capabilities,"
|
||||
" peer_sip_address_id = :peerSipAddressId,"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue