This commit is contained in:
spaced4ndy
2023-12-20 22:07:44 +04:00
parent 2feb849fe4
commit c350aa0ae4
+1
View File
@@ -5679,6 +5679,7 @@ batchChatMessages = reverse . mkBatch []
| cnt' == 1 = Builder.lazyByteString msgBody
| cnt' == 2 = "[" <> builder <> "," <> Builder.lazyByteString msgBody
| otherwise = builder <> "," <> Builder.lazyByteString msgBody
-- TODO test, probably need different functions for a case when only a single message fits into batch
completeBuilder bldr
| cnt' == 1 = bldr
| otherwise = bldr <> "]"