mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-01-23 12:30:51 -06:00
(Update)[Chat 2.0] Max Message Limits
Now you are able to configure the max messages allowed in each room.
This commit is contained in:
@@ -40,6 +40,13 @@ class ChatController extends Controller
|
||||
return ChatRoomResource::collection($this->chat->rooms());
|
||||
}
|
||||
|
||||
public function roomLimits($room_id)
|
||||
{
|
||||
return response([
|
||||
'max_messages' => config('chat.message_limit')
|
||||
], 200);
|
||||
}
|
||||
|
||||
/* MESSAGES */
|
||||
public function createMessage(Request $request)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user