core: config to send inline files (#1406)

* core: config to send inline files

* update config

* add/update tests

* fix tests
This commit is contained in:
Evgeny Poberezkin
2022-11-23 16:08:33 +00:00
committed by GitHub
parent 21722b3417
commit 388aaec80b
2 changed files with 77 additions and 19 deletions
+2 -2
View File
@@ -88,9 +88,9 @@ defaultInlineFilesConfig :: InlineFilesConfig
defaultInlineFilesConfig =
InlineFilesConfig
{ offerChunks = 15, -- max when chunks are offered / received with the option - limited to 255 on the encoding level
sendChunks = 0, -- max per file when chunks will be sent inline without acceptance
sendChunks = 6, -- max per file when chunks will be sent inline without acceptance
totalSendChunks = 30, -- max per conversation when chunks will be sent inline without acceptance
receiveChunks = 6 -- max when chunks are accepted
receiveChunks = 8 -- max when chunks are accepted
}
data ActiveTo = ActiveNone | ActiveC ContactName | ActiveG GroupName