mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
comment
This commit is contained in:
@@ -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