mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-30 01:39:20 +00:00
fix(ChatRoom): rename some functions
This commit is contained in:
parent
a9c557ae37
commit
cb045ce1b1
3 changed files with 6 additions and 5 deletions
|
|
@ -64,7 +64,7 @@ static inline string resolveWorkaroundClientGroupChatRoomAddress (
|
|||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
shared_ptr<ChatRoom> CorePrivate::createChatRoom (const Address &peerAddress, bool isRtt) {
|
||||
shared_ptr<ChatRoom> CorePrivate::createBasicChatRoom (const Address &peerAddress, bool isRtt) {
|
||||
L_Q();
|
||||
|
||||
shared_ptr<ChatRoom> chatRoom;
|
||||
|
|
@ -75,7 +75,7 @@ shared_ptr<ChatRoom> CorePrivate::createChatRoom (const Address &peerAddress, bo
|
|||
chatRoom = make_shared<BasicChatRoom>(q->getSharedFromThis(), peerAddress);
|
||||
|
||||
ChatRoomPrivate *dChatRoom = chatRoom->getPrivate();
|
||||
insertChatRoom(chatRoom);
|
||||
|
||||
dChatRoom->setState(ChatRoom::State::Instantiated);
|
||||
dChatRoom->setState(ChatRoom::State::Created);
|
||||
|
||||
|
|
@ -176,7 +176,8 @@ shared_ptr<ChatRoom> Core::getOrCreateBasicChatRoom (const Address &peerAddress,
|
|||
if (chatRoom)
|
||||
return chatRoom;
|
||||
|
||||
chatRoom = d->createChatRoom(peerAddress, isRtt);
|
||||
chatRoom = d->createBasicChatRoom(peerAddress, isRtt);
|
||||
d->insertChatRoom(chatRoom);
|
||||
d->insertChatRoomWithDb(chatRoom);
|
||||
|
||||
return chatRoom;
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public:
|
|||
|
||||
void insertChatRoom (const std::shared_ptr<ChatRoom> &chatRoom);
|
||||
void insertChatRoomWithDb (const std::shared_ptr<ChatRoom> &chatRoom);
|
||||
std::shared_ptr<ChatRoom> createChatRoom (const Address &peerAddress, bool isRtt);
|
||||
std::shared_ptr<ChatRoom> createBasicChatRoom (const Address &peerAddress, bool isRtt);
|
||||
|
||||
private:
|
||||
void deleteChatRoom (const std::string &peerAddress);
|
||||
|
|
|
|||
|
|
@ -1186,7 +1186,7 @@ MainDb::MainDb (const shared_ptr<Core> &core) : CoreAccessor(core), AbstractDb(*
|
|||
(void)lastNotifyId;
|
||||
|
||||
if (capabilities & static_cast<int>(ChatRoom::Capabilities::Basic)) {
|
||||
chatRoom = core->getPrivate()->createChatRoom(
|
||||
chatRoom = core->getPrivate()->createBasicChatRoom(
|
||||
Address(sipAddress),
|
||||
capabilities & static_cast<int>(ChatRoom::Capabilities::RealTimeText)
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue