mirror of
https://github.com/Mibew/mibew.git
synced 2025-03-01 01:24:32 +03:00
Sent "Visitor closed chat window" message only if there was a chat
This commit is contained in:
parent
c83fd59763
commit
9753081407
@ -620,7 +620,8 @@ class Thread
|
|||||||
// Update user's last ping time
|
// Update user's last ping time
|
||||||
$this->lastPingUser = 0;
|
$this->lastPingUser = 0;
|
||||||
|
|
||||||
// And send a message to operator
|
// And send a message to operator.
|
||||||
|
if ($this->state == self::STATE_CHATTING) {
|
||||||
$message_to_post = getlocal(
|
$message_to_post = getlocal(
|
||||||
'Visitor closed chat window',
|
'Visitor closed chat window',
|
||||||
null,
|
null,
|
||||||
@ -634,6 +635,7 @@ class Thread
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$this->save($update_revision);
|
$this->save($update_revision);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user