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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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