mirror of
https://github.com/Mibew/mibew.git
synced 2024-11-15 08:34:11 +03:00
Mark thread as chatting right after an invitation is accepted
This commit is contained in:
parent
70f630d125
commit
a9eb9f8cf2
@ -638,7 +638,6 @@ function chat_start_for_user(
|
||||
if (!$thread) {
|
||||
die("Cannot start thread");
|
||||
}
|
||||
$thread->state = Thread::STATE_CHATTING;
|
||||
} else {
|
||||
// Create thread
|
||||
$thread = new Thread();
|
||||
|
@ -183,7 +183,7 @@ function invitation_accept($visitor_id)
|
||||
}
|
||||
|
||||
// Update thread info
|
||||
$thread->state = Thread::STATE_LOADING;
|
||||
$thread->state = Thread::STATE_CHATTING;
|
||||
$thread->invitationState = Thread::INVITATION_ACCEPTED;
|
||||
$thread->chatStarted = time();
|
||||
$thread->save();
|
||||
|
Loading…
Reference in New Issue
Block a user