diff --git a/src/messenger/webim/libs/classes/thread.php b/src/messenger/webim/libs/classes/thread.php index 996b0b16..d0939a20 100644 --- a/src/messenger/webim/libs/classes/thread.php +++ b/src/messenger/webim/libs/classes/thread.php @@ -213,6 +213,7 @@ Class Thread { if (empty($thread->id)) { return false; } + $thread->lastToken = self::nextToken(); return $thread; } @@ -320,6 +321,15 @@ Class Thread { return $val; } + /** + * Create thread token + * + * @return int Thread token + */ + protected static function nextToken() { + return rand(99999, 99999999); + } + /** * Implementation of the magic __get method *