mirror of
https://github.com/Mibew/tray.git
synced 2025-01-22 10:00:35 +03:00
Update chat start time when user accept invitation
This commit is contained in:
parent
97a76cbd69
commit
18e6862949
@ -164,6 +164,7 @@ function invitation_accept($visitor_id) {
|
||||
// Update thread info
|
||||
$thread->state = Thread::STATE_LOADING;
|
||||
$thread->invitationState = Thread::INVITATION_ACCEPTED;
|
||||
$thread->chatStarted = time();
|
||||
$thread->save();
|
||||
|
||||
// Update visitor info
|
||||
|
Loading…
Reference in New Issue
Block a user