mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
use coreect address for 'me' and initiate chat room times with now
This commit is contained in:
parent
7bcfe62274
commit
5069a4a508
2 changed files with 3 additions and 3 deletions
|
|
@ -90,8 +90,8 @@ public:
|
|||
|
||||
ChatRoomId chatRoomId;
|
||||
|
||||
time_t creationTime = -1;
|
||||
time_t lastUpdateTime = -1;
|
||||
time_t creationTime = std::time(nullptr);
|
||||
time_t lastUpdateTime = std::time(nullptr);
|
||||
|
||||
private:
|
||||
L_DECLARE_PUBLIC(ChatRoom);
|
||||
|
|
|
|||
|
|
@ -1581,7 +1581,7 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate),
|
|||
shared_ptr<Participant> participant = make_shared<Participant>(IdentityAddress(row.get<string>(0)));
|
||||
participant->getPrivate()->setAdmin(!!row.get<int>(1));
|
||||
|
||||
if (participant->getAddress() == chatRoomId.getPeerAddress())
|
||||
if (participant->getAddress() == chatRoomId.getLocalAddress())
|
||||
me = participant;
|
||||
else
|
||||
participants.push_back(participant);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue