mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 16:09:20 +00:00
Fix Core::insertChatRoom().
This commit is contained in:
parent
07443b1f60
commit
c7454fa89e
1 changed files with 4 additions and 4 deletions
|
|
@ -106,11 +106,11 @@ shared_ptr<AbstractChatRoom> CorePrivate::createClientGroupChatRoom (const strin
|
|||
|
||||
void CorePrivate::insertChatRoom (const shared_ptr<AbstractChatRoom> &chatRoom) {
|
||||
L_ASSERT(chatRoom);
|
||||
L_Q();
|
||||
|
||||
q->deleteChatRoom(chatRoom);
|
||||
chatRooms.push_back(chatRoom);
|
||||
chatRoomsById[chatRoom->getChatRoomId()] = chatRoom;
|
||||
if (!chatRoomsById[chatRoom->getChatRoomId()]) {
|
||||
chatRooms.push_back(chatRoom);
|
||||
chatRoomsById[chatRoom->getChatRoomId()] = chatRoom;
|
||||
}
|
||||
}
|
||||
|
||||
void CorePrivate::insertChatRoomWithDb (const shared_ptr<AbstractChatRoom> &chatRoom) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue