mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-22 10:42:31 +00:00
comment
This commit is contained in:
1 parent
2feb849fe4
commit
c350aa0ae4
1 file changed
+1
@@ -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 <> "]"
|
||||
|
||||
Reference in new issue
Block a user