mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
keep fixing fetch of chat room
This commit is contained in:
parent
f04c4a40e1
commit
b8b82f7fdb
3 changed files with 6 additions and 5 deletions
|
|
@ -99,15 +99,16 @@ RemoteConference(core, me, nullptr) {
|
|||
|
||||
ClientGroupChatRoom::ClientGroupChatRoom (
|
||||
const shared_ptr<Core> &core,
|
||||
const IdentityAddress &peerAddress,
|
||||
const ChatRoomId &chatRoomId,
|
||||
shared_ptr<Participant> &me,
|
||||
const string &subject,
|
||||
list<shared_ptr<Participant>> &&participants,
|
||||
unsigned int lastNotifyId
|
||||
) : ChatRoom(*new ClientGroupChatRoomPrivate, core, ChatRoomId(peerAddress, me->getAddress())),
|
||||
) : ChatRoom(*new ClientGroupChatRoomPrivate, core, chatRoomId),
|
||||
RemoteConference(core, me->getAddress(), nullptr) {
|
||||
L_D_T(RemoteConference, dConference);
|
||||
|
||||
const IdentityAddress &peerAddress = chatRoomId.getPeerAddress();
|
||||
dConference->focus = make_shared<Participant>(peerAddress);
|
||||
dConference->conferenceAddress = peerAddress;
|
||||
dConference->subject = subject;
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public:
|
|||
|
||||
ClientGroupChatRoom (
|
||||
const std::shared_ptr<Core> &core,
|
||||
const IdentityAddress &peerAddress,
|
||||
const ChatRoomId &chatRoomId,
|
||||
std::shared_ptr<Participant> &me,
|
||||
const std::string &subject,
|
||||
std::list<std::shared_ptr<Participant>> &&participants,
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate),
|
|||
soci::session *session = dbSession.getBackendSession<soci::session>();
|
||||
|
||||
*session << "DELETE FROM chat_message_content WHERE event_id=:eventId", soci::use(eventId);
|
||||
|
||||
|
||||
//TODO: remove file content if exists
|
||||
//*session << "DELETE FROM chat_message_file_content WHERE chat_message_content_id=:messageContentId", soci::use(messageContentId);
|
||||
|
||||
|
|
@ -1924,7 +1924,7 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate),
|
|||
}
|
||||
chatRoom = make_shared<ClientGroupChatRoom>(
|
||||
core,
|
||||
chatRoomId.getPeerAddress(),
|
||||
chatRoomId,
|
||||
me,
|
||||
subject,
|
||||
move(participants),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue