mirror of
https://github.com/Mibew/mibew.git
synced 2025-04-09 17:40:10 +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) {
|
if (!$thread) {
|
||||||
die("Cannot start thread");
|
die("Cannot start thread");
|
||||||
}
|
}
|
||||||
$thread->state = Thread::STATE_CHATTING;
|
|
||||||
} else {
|
} else {
|
||||||
// Create thread
|
// Create thread
|
||||||
$thread = new Thread();
|
$thread = new Thread();
|
||||||
|
@ -183,7 +183,7 @@ function invitation_accept($visitor_id)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Update thread info
|
// Update thread info
|
||||||
$thread->state = Thread::STATE_LOADING;
|
$thread->state = Thread::STATE_CHATTING;
|
||||||
$thread->invitationState = Thread::INVITATION_ACCEPTED;
|
$thread->invitationState = Thread::INVITATION_ACCEPTED;
|
||||||
$thread->chatStarted = time();
|
$thread->chatStarted = time();
|
||||||
$thread->save();
|
$thread->save();
|
||||||
|
Loading…
Reference in New Issue
Block a user