diff --git a/src/chat/chat-room/chat-room-p.h b/src/chat/chat-room/chat-room-p.h index 36f64e1e8..2f5f0bdac 100644 --- a/src/chat/chat-room/chat-room-p.h +++ b/src/chat/chat-room/chat-room-p.h @@ -36,8 +36,6 @@ class ChatRoomPrivate : public ObjectPrivate, public IsComposingListener { public: ChatRoomPrivate () = default; - static int createChatMessageFromDb (void *data, int argc, char **argv, char **colName); - void addTransientEvent (const std::shared_ptr &log); void removeTransientEvent (const std::shared_ptr &log); @@ -49,7 +47,6 @@ public: void sendIsComposingNotification (); - int createChatMessageFromDb (int argc, char **argv, char **colName); std::list> findMessages (const std::string &messageId) const; virtual LinphoneReason messageReceived (SalOp *op, const SalMessage *msg); diff --git a/src/chat/chat-room/chat-room.cpp b/src/chat/chat-room/chat-room.cpp index 980bb40a7..4c70fa249 100644 --- a/src/chat/chat-room/chat-room.cpp +++ b/src/chat/chat-room/chat-room.cpp @@ -35,13 +35,6 @@ LINPHONE_BEGIN_NAMESPACE // ----------------------------------------------------------------------------- -int ChatRoomPrivate::createChatMessageFromDb (void *data, int argc, char **argv, char **colName) { - ChatRoomPrivate *d = reinterpret_cast(data); - return d->createChatMessageFromDb(argc, argv, colName); -} - -// ----------------------------------------------------------------------------- - void ChatRoomPrivate::addTransientEvent (const shared_ptr &log) { auto iter = find(transientEvents.begin(), transientEvents.end(), log); if (iter == transientEvents.end()) @@ -129,30 +122,6 @@ time_t ChatRoom::getLastUpdateTime () const { // ----------------------------------------------------------------------------- -/** - * DB layout: - * - * | 0 | storage_id - * | 1 | localContact - * | 2 | remoteContact - * | 3 | direction flag (LinphoneChatMessageDir) - * | 4 | message (text content of the message) - * | 5 | time (unused now, used to be string-based timestamp, replaced by the utc timestamp) - * | 6 | read flag (no longer used, replaced by the LinphoneChatMessageStateDisplayed state) - * | 7 | status (LinphoneChatMessageState) - * | 8 | external body url (deprecated file transfer system) - * | 9 | utc timestamp - * | 10 | app data text - * | 11 | linphone content id (LinphoneContent describing a file transfer) - * | 12 | message id (used for IMDN) - * | 13 | content type (of the message field [must be text representable]) - * | 14 | secured flag - */ -int ChatRoomPrivate::createChatMessageFromDb (int argc, char **argv, char **colName) { - // TODO: history. - return 0; -} - list > ChatRoomPrivate::findMessages (const string &messageId) const { L_Q(); return q->getCore()->getPrivate()->mainDb->findChatMessages(q->getChatRoomId(), messageId);