1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Provide roomID for users in NewMessagesPage

This commit is contained in:
Tim Düsterhus 2014-08-02 18:11:54 +02:00
parent fe2f675e4d
commit 1d92b0f26b

View File

@ -120,6 +120,7 @@ public function show() {
$json['users'][] = array(
'userID' => (int) $user->userID,
'username' => $user->username,
'roomID' => (int) $user->chatRoomID,
'awayStatus' => $user->chatAway,
'suspended' => (boolean) !$this->room->canWrite($user->getDecoratedObject()),
'mod' => $this->room->canBan($user->getDecoratedObject()) || $this->room->canMute($user->getDecoratedObject()),