Skip to content

A platform for community discussion. Free, open, simple.

FIX: Page size check for thread messages (#21692)

Martin Brennan3fed1abf2f2a
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))