Update chat start time when user accept invitation

This commit is contained in:
Dmitriy Simushev 2013-05-27 09:31:36 +00:00
parent 97a76cbd69
commit 18e6862949

View File

@ -164,6 +164,7 @@ function invitation_accept($visitor_id) {
// Update thread info // Update thread info
$thread->state = Thread::STATE_LOADING; $thread->state = Thread::STATE_LOADING;
$thread->invitationState = Thread::INVITATION_ACCEPTED; $thread->invitationState = Thread::INVITATION_ACCEPTED;
$thread->chatStarted = time();
$thread->save(); $thread->save();
// Update visitor info // Update visitor info