Evgeny Poberezkin
0a6e47dd61
Merge branch 'master' into master-ghc8107
2023-12-27 20:57:25 +00:00
Evgeny Poberezkin
b220b5f6ec
core: fix contact subscriptions ( #3611 )
2023-12-27 18:55:50 +00:00
Evgeny Poberezkin
efc873b09b
core: min version for remote connection 5.4.2.0 ( #3594 )
2023-12-27 14:48:28 +00:00
Evgeny Poberezkin
9918d91def
Merge branch 'master' into master-ghc8107
2023-12-27 14:09:23 +00:00
Stanislav Dmitrenko
58906e1a60
desktop (windows): fixed handling non-utf8 Windows profile names ( #3605 )
2023-12-27 13:56:48 +00:00
Evgeny Poberezkin
de637fab50
Merge branch 'master' into master-ghc8107
2023-12-26 21:12:36 +00:00
Evgeny Poberezkin
af22348bf8
core: use version from config, add tests ( #3588 )
...
* core: use version from config, add tests
* comment
* refactor
2023-12-24 13:27:51 +00:00
spaced4ndy
700f6fa663
core, docs: drop message views if they exist, remove mentions in docs ( #3589 )
...
* core, docs: drop message views if they exist, remove mentions in docs
* fix migration
2023-12-24 11:13:34 +00:00
Evgeny Poberezkin
6d0a83aa58
Merge branch 'master' into master-ghc8107
2023-12-23 19:57:08 +00:00
Evgeny Poberezkin
2834b192ce
core: do not create group history item ( #3586 )
...
* core: do not create group history item
* fix tests
2023-12-23 19:56:01 +00:00
Evgeny Poberezkin
355d2449c5
fix for GHC 8.10.7
2023-12-23 15:05:36 +00:00
Evgeny Poberezkin
f7382cdd6f
Merge branch 'master' into master-ghc8107
2023-12-23 13:52:44 +00:00
spaced4ndy
12d1ada25e
core: support batch sending in groups, batch introductions; send recent message history to new members ( #3519 )
...
* core: batch send stubs, comments
* multiple events in ChatMessage and supporting types
* Revert "multiple events in ChatMessage and supporting types"
This reverts commit 9b239b26ba .
* schema, refactor group processing for batched messages
* encoding, refactor processing
* refactor code to work with updated schema
* encoding, remove instances
* wip
* implement batching
* batch introductions
* wip
* collect and send message history
* missing new line
* rename
* test
* rework to build history via chat items
* refactor, tests
* correctly set member version range, dont include deleted items
* tests
* fix disappearing messages
* check number of errors
* comment
* check size in encodeChatMessage
* fix - don't check msg size for binary
* use builder
* rename
* rename
* rework batching
* lazy msg body
* use withStoreBatch
* refactor
* reverse batches
* comment
* possibly fix builder for single msg
* refactor batcher
* refactor
* dont repopulate msg_deliveries on down migration
* EncodedChatMessage type
* remove type
* batcher tests
* add tests
* group history preference
* test group link
* fix tests
* fix for random update
* add test testImageFitsSingleBatch
* refactor
* rename function
* refactor
* mconcat
* rename feature
* catch error on each batch
* refactor file inv retrieval
* refactor gathering item forward events
* refactor message batching
* unite migrations
* move files
* refactor
* Revert "unite migrations"
This reverts commit 0be7a3117a .
* refactor splitFileDescr
* improve tests
* Revert "dont repopulate msg_deliveries on down migration"
This reverts commit 2944c1cc28 .
* fix down migration
---------
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2023-12-23 13:07:23 +00:00
Evgeny Poberezkin
f93f68e425
core: agent background mode for iOS NSE ( #3574 )
...
* core: agent background mode for iOS NSE
* change parameter for APIActivateChat
* fix
* update lib
* update lib
* simplexmq
* simplify
2023-12-23 13:06:59 +00:00
Evgeny Poberezkin
754c76d6fd
Merge branch 'master' into master-ghc8107
2023-12-21 00:45:10 +00:00
Evgeny Poberezkin
7bcda7e54b
core: use ChaChaDRG as the source of randomness ( #3551 )
...
* core: use ChaChaDRG as the source of randomness
* do not use entropy directly
* dont use RNG from agent
* simplexmq
* update iOS
2023-12-21 00:42:40 +00:00
Evgeny Poberezkin
6ba3100d34
core: batch sending messages ( #3566 )
...
* core: batch sending messages
* batch without iorefs (#3573 )
* one-pass
* simplexmq
* simplexmq
* simplexmq
* simplexmq
* revert change to ios project file
* refactor
* simplify
---------
Co-authored-by: Alexander Bondarenko <486682+dpwiz@users.noreply.github.com >
2023-12-20 10:38:39 +04:00
Evgeny Poberezkin
7b073ba9f8
core: allow deleting last user ( #3567 )
...
* core: allow deleting last user (tests fail)
* tests, allow activating the hidden user when there is no active user
* hide logs
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
* comment
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
* comment
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
---------
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
2023-12-19 10:26:01 +00:00
spaced4ndy
8cec5428ee
core: save CIContent tag in chat_items table ( #3555 )
2023-12-14 17:08:40 +04:00
Evgeny Poberezkin
256f85024f
Merge branch 'master' into master-ghc8107
2023-12-13 12:35:37 +00:00
spaced4ndy
b6b041490f
core: improve chat list pagination performance, simplify logic by always reading chat stats and last item id for previews ( #3541 )
...
* core: improve chat list pagination performance
* fix query
* core: improve chat list pagination performance, simplify logic by always reading chat stats (#3543 )
* microseconds
* fix
* update simplexmq
* simplify queries
---------
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2023-12-13 15:32:23 +04:00
Evgeny Poberezkin
8a66390a78
fix for GHC 8.10.7
2023-12-11 16:14:56 +00:00
Evgeny Poberezkin
6546426ec0
Merge branch 'master' into master-ghc8107
2023-12-11 14:56:25 +00:00
Evgeny Poberezkin
f9a125bc32
Merge branch 'master' into ios-notifications
2023-12-11 14:11:00 +00:00
spaced4ndy
53560378bb
Merge branch 'master' into master-ghc8107
2023-12-11 17:52:48 +04:00
Alexander Bondarenko
35c1975d66
core: chat list pagination ( #3505 )
...
* add pagination args to APIGetChats
* add search to chat list API
* rename arg to paginationTs_ to match type
* lift another condition to ids query
* collect all chat refs before sorting, then get details
* split remaining preview functions
* roll back to collecting ids first with query cleanup
* add connection join back to filter out groups
* extract and expand tests
* add fav/unread args
* WIP
* lay out the queries with favs
* tweak tests
* add fav tests
* fix order by in the before case
* build query footer wholly from pagination
* add migration for direct contacts
* fix setting contact_used
* fix setting contact_used for group link contacts
* align search x filters space with UI, support filter by either favorite or unread, optimize queries, indexes
* always set chat_ts, fix tests
* refactor tests
* fix pagination logic, more tests
* refactor, rename
* increase default pagination count
* comments
* refactor
* comment
* report errors
* refactor
* remove unused type
---------
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
2023-12-11 17:50:32 +04:00
Evgeny Poberezkin
666903ae76
Merge branch 'master' into ios-notifications
2023-12-11 13:06:32 +00:00
Evgeny Poberezkin
8a41a4c214
ios: do not start chat if it was stopped, deliver "app stopped" notifications ( #3535 )
...
* add stopped notifications, remove full off mode
* core: allow initializing chat data without starting chat
* ios: ask before starting chat if it was stopped
* correct text
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
* fix comment
---------
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
2023-12-11 12:59:49 +00:00
Evgeny Poberezkin
f65b8a9e78
core: mark all user messages read ( #3530 )
2023-12-11 12:26:45 +00:00
Evgeny Poberezkin
d3059afc99
ios, core: better notifications processing to avoid contention for database ( #3485 )
...
* core: forward notifications about message processing (for iOS notifications)
* simplexmq
* the option to keep database key, to allow re-opening the database
* export new init with keepKey and reopen DB api
* stop remote ctrl when suspending chat
* ios: close/re-open db on suspend/activate
* allow activating chat without restoring (for NSE)
* update NSE to suspend/activate (does not work)
* simplexmq
* suspend chat and close database when last notification in the process is processed
* stop reading notifications on message markers
* replace async stream with cancellable concurrent queue
* better synchronization of app and NSE
* remove outside of task
* remove unused var
* whitespace
* more debug logging, handle cancelled read after dequeue
* comments
* more comments
2023-12-09 21:59:40 +00:00
Evgeny Poberezkin
9f3d3e8ba4
Merge branch 'master' into master-ghc8107
2023-12-07 15:00:23 +00:00
Evgeny Poberezkin
ee163a6540
core: add missing field
2023-12-06 12:34:10 +00:00
Evgeny Poberezkin
087acd9180
changes to support GHC 8.10.7 ( #3512 )
...
* Revert "raise lower bound on mtl to a real version (#3499 )"
This reverts commit f94c0311c1 .
* Revert "core: expand ranges to fit ghc 8.10 & 9.6 (#3496 )"
This reverts commit 9a1c7f41f7 .
* update simplexmq
* remove netword-transport fork
* compatibility with GHC 8.10.7
* simplexmq
* fix test
* simplexmq, deps
* update sqlcipher deps in sha256nix
* fix index-state in cabal.project
* index-state
* remove import
* add cabal.project.freeze
* simplexmq
* remove freeze
* simplexmq
* bytestring,simplexmq
* template-haskell, simplexmq
* simplexmq
* simplexmq
* simplexmq
* mtl
* simplexmq
* remove duplicate index-state
2023-12-04 12:29:49 +00:00
Evgeny Poberezkin
0b822e4a5c
Merge branch 'master' into master-ghc8107
2023-12-04 10:07:16 +00:00
Evgeny Poberezkin
6a9a67db14
cli: option to mark shown messages as read (off by default) ( #3506 )
...
* cli: option to mark shown messages as read (off by default)
* fix tests
* fix tests
2023-12-03 15:42:26 +00:00
spaced4ndy
38533213d2
Merge branch 'master' into master-ghc8107
2023-11-30 20:56:51 +04:00
spaced4ndy
5819e42305
core: remove CRNewContactConnection response; mobile, desktop: create pending connections based on api responses (CRNewContactConnection was being used as "event" in UI) ( #3489 )
2023-11-30 20:31:32 +04:00
Alexander Bondarenko
6a21d5c7f1
add remote host bindings ( #3471 )
...
* add remote host bindings
* group iface/address together
* rename migration
* add implementation
* update view and api
* bump upstream
* add schema
---------
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2023-11-28 16:32:33 +00:00
Evgeny Poberezkin
05278e5a06
core: allow remote host commands without user ( #3478 )
2023-11-27 18:34:15 +00:00
spaced4ndy
b0002fe07d
Merge branch 'master' into master-ghc8107
2023-11-27 19:17:39 +04:00
spaced4ndy
3073c4a1d5
core: fix chat previews showing not the latest message, fix message ordering in direct chats; mobile: update group previews only on timestamp increase ( #3473 )
2023-11-27 17:14:12 +04:00
Evgeny Poberezkin
d4ac1c0cf2
core, ui: add remote host/controller stop reasons to events ( #3472 )
2023-11-26 23:23:37 +00:00
Evgeny Poberezkin
4a311b9578
fix for ghc 8.10.7
2023-11-26 19:34:39 +00:00
Evgeny Poberezkin
b8da5e225b
Merge branch 'master' into master-ghc8107
2023-11-26 18:53:40 +00:00
Evgeny Poberezkin
d29f1bb0cf
core: use fourmolu styles ( #3470 )
2023-11-26 18:16:37 +00:00
Alexander Bondarenko
f20ac33e67
cli: remove clashing short option for device-name ( #3468 )
2023-11-26 13:16:32 +00:00
Evgeny Poberezkin
0c096e2c89
Merge branch 'master' into master-ghc8107
2023-11-24 19:00:30 +00:00
Alexander Bondarenko
4327b023ed
terminal: add remote user information ( #3448 )
...
* terminal: add remote user information
* rename
---------
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2023-11-24 18:44:12 +00:00
Evgeny Poberezkin
b1cf1656a0
core: cli remote control help section ( #3445 )
2023-11-24 10:48:14 +00:00
Alexander Bondarenko
74e80eb348
core: add remote stop reason and state ( #3444 )
...
* add remote stop reason and state
* rename
---------
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2023-11-23 22:00:20 +00:00