spaced4ndy
42ebe8bc60
core: batch broadcast send db operations ( #3956 )
...
* core: batch broadcast send db operations
* refactor
* Update src/Simplex/Chat.hs
Co-authored-by: Alexander Bondarenko <486682+dpwiz@users.noreply.github.com >
---------
Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com >
Co-authored-by: Alexander Bondarenko <486682+dpwiz@users.noreply.github.com >
2024-03-27 11:49:14 +04:00
Alexander Bondarenko
5bc8bbe16c
chat: use context-less compression ( #3913 )
...
* chat: use context-less compression
* update sha256map
* space
---------
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com >
2024-03-19 13:33:27 +00:00
spaced4ndy
94a6f300ed
core: fix creation of empty files ( #3912 )
2024-03-15 18:17:31 +04:00
spaced4ndy
f3eeb9dcc2
core: temp-folder option ( #3905 )
2024-03-14 10:59:20 +04:00
spaced4ndy
240ca30f91
core: remove withStoreCtx ( #3903 )
2024-03-13 13:57:17 +04:00
Alexander Bondarenko
7fa2f2f72e
core: organize withAckMessage ( #3889 )
...
* core: organize withAckMessage
* mark critical sections
* differentiate DB internal error from chat
* throw CRITICALs
* only CRIT on SEDatabaseError
* normalize errors
* shift MonadError into ExceptT
* simplify
* split critical handlers
* names, CRITICAL error in withAckMessage, comments
* only show critical alerts when database was locked or busy and message failed to process
---------
Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com >
2024-03-12 17:47:38 +00:00
Alexander Bondarenko
4a404f14d9
core: add error message to CRSndFileError ( #3894 )
...
* core: add error message to CRSndFileError
* show snd errors
2024-03-12 14:19:40 +00:00
spaced4ndy
4f893d9502
core: improve getGroupChatItemQuote_ query performance ( #3897 )
2024-03-12 12:51:02 +00:00
Evgeny Poberezkin
01447716fa
core: update remote controller/host versions
2024-03-12 12:49:26 +00:00
spaced4ndy
56fcaf514e
core (pq): don't compress if message fits without compression; check compressed message fits size limit ( #3888 )
...
* core (pq): don't compress if message fits without compression; check compressed message fits size limit
* refactor
* errors
* fix tests
* envelope sizes
* refactor
* comment
* more flexible test
* refactor, comment
---------
Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com >
2024-03-10 22:54:55 +00:00
Evgeny Poberezkin
49bd866c4b
core: pass version range to determine missing connection version ( #3887 )
...
* core: pass version range function to store methods
* pass current version to Connection to determine agreed version with peer
* simplify
2024-03-10 20:52:29 +00:00
Evgeny Poberezkin
60a73a539e
core: add agreed connection version field ( #3881 )
...
* core: add agreed connection version field
* fix
* progress
* use pqSupport and version to decide compression in messages
* pass version to encodeConnInfoPQ
* update pq enable/disable api
* remove TestConfig
* update nix dependencies
* update texts
* corrections
* create e2ee info items when connection switches from off to on first time
* corrections
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
* comment
* increase test timeout
---------
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
2024-03-10 11:31:14 +00:00
spaced4ndy
191d833947
core (pq): tests ( #3882 )
...
* core (pq): tests
* rename
* move
* test allow
* mute test output
* pq combinators
* refactor
---------
Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com >
2024-03-08 23:09:12 +00:00
Alexander Bondarenko
19ca4f7447
core: remove duplicate Eq orphans ( #3880 )
...
* core: remove duplicate Eq orphans
* bump nix
2024-03-08 23:06:51 +00:00
Evgeny Poberezkin
b86b5578de
Merge branch 'master' into pq
2024-03-08 13:47:10 +00:00
Evgeny Poberezkin
435ea9a453
core: api to pass additional information with standalone file URI ( #3873 )
...
* xftp: redirect for descriptions with more than one chunk
* handle errors
* core: api to pass additional information with standalone file URI
* cleanup
* test info with large file
* Apply suggestions from code review
Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com >
* remove db-mediated client data
* refactor
* fix
---------
Co-authored-by: Alexander Bondarenko <486682+dpwiz@users.noreply.github.com >
2024-03-08 13:38:48 +00:00
Evgeny Poberezkin
1f93d91af5
core: simplify feature versions ( #3879 )
...
* core: simplify feature versions
* update version agreement
* fix
* remove EmptyCase
2024-03-08 13:36:09 +00:00
spaced4ndy
109b6e0cff
core (pq): add pq_support field ( #3877 )
2024-03-08 12:24:27 +04:00
spaced4ndy
b403201310
core (pq): further integrate agent api ( #3874 )
...
* core (pq): further integrate agent api
* update both pq support and ecnryption
* update
* fix
* corrections
* corrections 2
* corrections 3
2024-03-08 11:40:55 +04:00
spaced4ndy
bc2b135880
core (pq): update types ( #3872 )
...
* core (pq): update types
* imports
* encode / max msg size types
* integrate new types
* update types/pq support
* tests compile
---------
Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com >
2024-03-07 17:39:09 +04:00
spaced4ndy
61a3eb32ee
core (pq): global flag only affects new connections; api to allow PQ in old contacts ( #3869 )
2024-03-06 19:06:01 +04:00
Alexander Bondarenko
64dc758ffd
core: compressed message encoding, variable vrange ( #3844 )
2024-03-06 18:02:19 +04:00
spaced4ndy
eebf014ff7
core (pq): integrate agent api, create e2ee info items ( #3859 )
2024-03-05 20:27:00 +04:00
spaced4ndy
2155060ad0
core: groundwork for post-quantum encryption support ( #3845 )
2024-03-03 17:51:42 +04:00
Alexander Bondarenko
db2ccaa450
controller: add standalone upload limit ( #3853 )
...
* controller: add standalone upload limit
* use hard limit from simplexmq
2024-03-02 19:31:11 +00:00
spaced4ndy
05383477d9
core: wait for delivery to avoid race between connection deletion and sending service messages about entity deletion ( #3849 )
2024-03-01 11:26:54 +04:00
spaced4ndy
c27973d202
core: restrict to delete user contact and display name ( #3822 )
2024-02-26 17:10:21 +04:00
spaced4ndy
51a2e09714
core: batch db operations for group leave and delete ( #3807 )
...
* core: batch db operations for group leave and delete
* remove comment
* batch delete files
* cleanup
* rename
* use new agent api
* refactor
* refactor, catch error
* refactor
* update simplexmq
---------
Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com >
2024-02-26 15:36:42 +04:00
Evgeny Poberezkin
e37654772f
core: api to save/get app settings to migrate them as part of the database ( #3824 )
...
* rfc: migrate app settings as part of export/import/migration
* export/import app settings
* test, fix
* chat: store app settings in db (#3834 )
* chat: store app settings in db
* add combining with app-defaults
* commit schema
* test with tweaked settings
* remove unused error
---------
Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com >
* remove app settings from export/import
* test, more settings
---------
Co-authored-by: Alexander Bondarenko <486682+dpwiz@users.noreply.github.com >
2024-02-24 15:00:16 +00:00
Evgeny Poberezkin
395654098c
core: do not mark store as changed after passphrase test ( #3833 )
...
* core: do not mark store as changed after passphrase test
* fix
2024-02-24 13:37:09 +00:00
spaced4ndy
b0b249a56a
Merge branch 'stable'
2024-02-22 12:11:23 +04:00
spaced4ndy
92c89632d4
core, ui: don't mark profile updated chat item as unread ( #3830 )
...
* core, ui: don't mark profile updated chat item as unread
* android
2024-02-21 21:54:52 +00:00
Alexander Bondarenko
d54b453b49
controller: fix standalone using relative paths ( #3831 )
2024-02-21 21:54:03 +00:00
spaced4ndy
f7d7f5461f
core: check user record when deleting contact and display name ( #3826 )
...
* filter out on merge
* checl contact, ldn
* fix
* corrections
* fix
* refactor
* diff
* refactor2
* remove contact id from error
* Revert "remove contact id from error"
This reverts commit f58af3dcac .
* remove Maybe from error
---------
Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com >
2024-02-21 14:24:24 +00:00
spaced4ndy
c544a636f6
core, ui: remove usage of inline files (send only xftp files) ( #3823 )
2024-02-20 13:56:31 +04:00
spaced4ndy
654a7885c3
core: read chat items with logical database errors as invalid (don't fail) ( #3736 )
2024-02-19 15:17:14 +04:00
Alexander Bondarenko
daf67c0456
core: add direct xftp upload/download commands ( #3781 )
...
* chat: add direct xftp upload/download commands
* adapt to FileDescriptionURI record
* bump simplexmq
* add description uploading
* filter URIs by size
* cleanup
* add file meta to events
* remove focus
* auto-redirect when no URI fits
* send "upload complete" event with the original file id
* remove description upload command
* add index
* refactor
* update simplexmq
* Apply suggestions from code review
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
* fix /fc command for non-chat uploads
* fix
* rename (tests fail)
* num recipients
* update messages
* split "file complete" events for chats and standalone
* restore xftpSndFileRedirect
* remove unused store error
* add send/cancel test
* untangle standalone views
* fix confused id
* fix /fc and /fs
* resolve comments
* misc fixes
* bump simplexmq
* fix build
* handle redirect errors independently
* fix missing file status in tests
---------
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com >
2024-02-19 10:21:32 +00:00
Alexander Bondarenko
364b62320b
controller: add db passphrase test command ( #3788 )
...
* controller: add passphrase test
* refactor
---------
Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com >
2024-02-18 13:28:24 +00:00
Evgeny Poberezkin
d83a6b7133
core: ntf server test ( #3819 )
2024-02-18 12:12:38 +00:00
Evgeny Poberezkin
e3df7945d5
core: update simplexmq (updated protocol, discontinue old versions) ( #3818 )
...
* core: update simplexmq (updated protocol, discontinue old versions)
* update nix
2024-02-17 16:29:45 +00:00
spaced4ndy
1a7efbc333
core: update default ntf servers ( #3804 )
2024-02-13 15:10:40 +04:00
spaced4ndy
e39544dd24
core: return ntf server in APIGetNtfToken ( #3797 )
2024-02-12 21:21:20 +04:00
Evgeny Poberezkin
a1328c287c
core: remove unused events from api ( #3764 )
...
* core: remove unused events from api
* fix test
2024-01-26 18:54:08 +00:00
spaced4ndy
0e585d5e5b
core: fix group invitation marked deleted
2024-01-26 20:30:21 +04:00
spaced4ndy
7192448303
core: fix invitation as rejected when deleting group ( #3759 )
2024-01-26 17:56:17 +04:00
spaced4ndy
3e0b863b64
core: add cChatJsonLength function ( #3753 )
2024-01-25 18:57:38 +04:00
spaced4ndy
afd145c979
core: improve chat list performance (indexes) ( #3728 )
2024-01-22 18:03:40 +04:00
Evgeny Poberezkin
052ef2037a
core: update min version for remote to 5.5.0.2 ( #3720 )
2024-01-20 20:53:26 +00:00
Evgeny Poberezkin
c65a17fccb
core: output messages and events while executing the CLI command passed via -e option ( #3683 )
...
* core: output messages and events while executing the CLI command passed via -e option
* option
* add option
2024-01-20 14:59:13 +00:00
Evgeny Poberezkin
cc05434b31
core: process message errors ( #3709 )
...
* core: process message errors
* update simplexmq commit sha
* style
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
* simplexmq
---------
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
2024-01-20 08:17:57 +00:00