1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-01-09 00:20:08 +00:00

Use faster changing values for activity points

Fixes #15
This commit is contained in:
Tim Düsterhus 2013-02-02 23:43:14 +01:00
parent 9df61f76e1
commit 98281b502b
2 changed files with 3 additions and 2 deletions

View File

@ -217,9 +217,10 @@ public function save() {
) )
)); ));
$this->objectAction->executeAction(); $this->objectAction->executeAction();
$returnValues = $this->objectAction->getReturnValues();
// add activity points // add activity points
\wcf\system\user\activity\point\UserActivityPointHandler::getInstance()->fireEvent('be.bastelstu.chat.activityPointEvent.message', TIME_NOW, WCF::getUser()->userID); \wcf\system\user\activity\point\UserActivityPointHandler::getInstance()->fireEvent('be.bastelstu.chat.activityPointEvent.message', $returnValues->messageID, WCF::getUser()->userID);
$this->saved(); $this->saved();
} }

View File

@ -208,7 +208,7 @@ public function show() {
parent::show(); parent::show();
// add activity points // add activity points
\wcf\system\user\activity\point\UserActivityPointHandler::getInstance()->fireEvent('be.bastelstu.chat.activityPointEvent.join', TIME_NOW, WCF::getUser()->userID); \wcf\system\user\activity\point\UserActivityPointHandler::getInstance()->fireEvent('be.bastelstu.chat.activityPointEvent.join', (microtime(true) * 1000 & 0xFFFFFFFF), WCF::getUser()->userID);
// break if not using ajax // break if not using ajax
if ($this->useTemplate) exit; if ($this->useTemplate) exit;