Skip to content

Commit ad73a7a

Browse files
committed
Fix check on conversation size
Before, we were checking whether the number of people added to a conversation was strictly less than the limit - 1, which was causing conversation with maximum size to be rejected. This was introduced by the refactoring in #1801.
1 parent 5ebfb81 commit ad73a7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/galley/src/Galley/Validation.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ checkedConvSize x = do
5050
o <- view options
5151
let minV :: Integer = 0
5252
limit = o ^. optSettings . setMaxConvSize - 1
53-
if length x < fromIntegral limit
53+
if length x <= fromIntegral limit
5454
then return (ConvSizeChecked x)
5555
else throwErr (errorMsg minV limit "")
5656

0 commit comments

Comments
 (0)