Commit 67053e8e authored by Ronan's avatar Ronan
Browse files

fix(MainDb): rename insertOrUpdateBasicChatRoom to insertOrUpdateImportedBasicChatRoom

parent b51fd2e4
...@@ -53,7 +53,7 @@ private: ...@@ -53,7 +53,7 @@ private:
long long insertSipAddress (const std::string &sipAddress); long long insertSipAddress (const std::string &sipAddress);
void insertContent (long long messageEventId, const Content &content); void insertContent (long long messageEventId, const Content &content);
long long insertContentType (const std::string &contentType); long long insertContentType (const std::string &contentType);
long long insertOrUpdateBasicChatRoom ( long long insertOrUpdateImportedBasicChatRoom (
long long peerSipAddressId, long long peerSipAddressId,
long long localSipAddressId, long long localSipAddressId,
const tm &creationTime const tm &creationTime
......
...@@ -213,7 +213,7 @@ static constexpr string &blobToString (string &in) { ...@@ -213,7 +213,7 @@ static constexpr string &blobToString (string &in) {
return q->getLastInsertId(); return q->getLastInsertId();
} }
long long MainDbPrivate::insertOrUpdateBasicChatRoom ( long long MainDbPrivate::insertOrUpdateImportedBasicChatRoom (
long long peerSipAddressId, long long peerSipAddressId,
long long localSipAddressId, long long localSipAddressId,
const tm &creationTime const tm &creationTime
...@@ -2435,7 +2435,7 @@ static constexpr string &blobToString (string &in) { ...@@ -2435,7 +2435,7 @@ static constexpr string &blobToString (string &in) {
const long long &eventId = getLastInsertId(); const long long &eventId = getLastInsertId();
const long long &localSipAddressId = d->insertSipAddress(message.get<string>(LEGACY_MESSAGE_COL_LOCAL_ADDRESS)); const long long &localSipAddressId = d->insertSipAddress(message.get<string>(LEGACY_MESSAGE_COL_LOCAL_ADDRESS));
const long long &remoteSipAddressId = d->insertSipAddress(message.get<string>(LEGACY_MESSAGE_COL_REMOTE_ADDRESS)); const long long &remoteSipAddressId = d->insertSipAddress(message.get<string>(LEGACY_MESSAGE_COL_REMOTE_ADDRESS));
const long long &chatRoomId = d->insertOrUpdateBasicChatRoom( const long long &chatRoomId = d->insertOrUpdateImportedBasicChatRoom(
remoteSipAddressId, remoteSipAddressId,
localSipAddressId, localSipAddressId,
creationTime creationTime
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment