(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:
Poppabear
2018-05-13 00:26:04 -04:00
parent ca4451f434
commit fff8d78764
9 changed files with 386 additions and 417 deletions
+4 -1
View File
@@ -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)