mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-25 04:28:51 -05:00
(Release) Chat 2.1 Beta
--- Fixed --- 1. When switching rooms, will fetch new messages 2. Scrolling issues 3. Large margin on left side of content area for large width displays 4. Can now use tradition SHIFT + ENTER for new lines 5. Styled to be more attractive ??
This commit is contained in:
@@ -70,7 +70,10 @@ class ChatRepository
|
||||
}
|
||||
|
||||
public function messages($room_id) {
|
||||
return $this->message->where('chatroom_id', $room_id)->get();
|
||||
return $this->message->with(['user.group', 'user.chatStatus'])
|
||||
->where('chatroom_id', $room_id)
|
||||
->limit(config('chat.message_limit'))
|
||||
->get();
|
||||
}
|
||||
|
||||
public function checkMessageLimits($room_id)
|
||||
|
||||
Reference in New Issue
Block a user