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

This commit is contained in:
Martin Brennan
2023-05-23 11:59:19 +02:00
committed by GitHub
parent dad6b61807
commit 3fed1abf2f

View File

@ -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))