FIX: Page size check for thread messages (#21692)
This commit is contained in:
parent
dad6b61807
commit
3fed1abf2f
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue