From 3fed1abf2f2a5553139d9c284702705dfba4ce4e Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Tue, 23 May 2023 11:59:19 +0200 Subject: [PATCH] FIX: Page size check for thread messages (#21692) --- plugins/chat/app/controllers/chat/chat_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/chat/app/controllers/chat/chat_controller.rb b/plugins/chat/app/controllers/chat/chat_controller.rb index 67b03e2a0e7..bda98f5e541 100644 --- a/plugins/chat/app/controllers/chat/chat_controller.rb +++ b/plugins/chat/app/controllers/chat/chat_controller.rb @@ -175,7 +175,7 @@ module Chat page_size = params[:page_size]&.to_i || 1000 direction = params[:direction].to_s message_id = params[:message_id] - if page_size > 50 || + if page_size > 100 || ( message_id.blank? ^ direction.blank? && (direction.present? && !CHAT_DIRECTIONS.include?(direction))