From 505cceb22aa9dd66f227f7d7a0105dfa263b46d6 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Fri, 13 Oct 2017 11:19:00 +0200 Subject: [PATCH] Allow overriding storeOrUpdateMessage() and messageReceived() methods of ChatRoomPrivate. --- src/chat/chat-room/chat-room-p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chat/chat-room/chat-room-p.h b/src/chat/chat-room/chat-room-p.h index ee72788d5..4dd4663f6 100644 --- a/src/chat/chat-room/chat-room-p.h +++ b/src/chat/chat-room/chat-room-p.h @@ -65,10 +65,10 @@ protected: int sqlRequest (sqlite3 *db, const std::string &stmt); void sqlRequestMessage (sqlite3 *db, const std::string &stmt); std::list> findMessages (const std::string &messageId); - void storeOrUpdateMessage (const std::shared_ptr &msg); + virtual void storeOrUpdateMessage (const std::shared_ptr &msg); public: - LinphoneReason messageReceived (SalOp *op, const SalMessage *msg); + virtual LinphoneReason messageReceived (SalOp *op, const SalMessage *msg); void realtimeTextReceived (uint32_t character, LinphoneCall *call); protected: