Evgeny Poberezkin
4d2826f490
add delay to test
2023-09-30 19:52:17 +01:00
Evgeny Poberezkin
c4ac5a784f
use functions from simplexmq, fix tests
2023-09-30 17:49:43 +01:00
Evgeny Poberezkin
d32adf6f6c
update simplexmq
2023-09-30 11:57:22 +01:00
Evgeny Poberezkin
1d34500fba
core: revert stop/close changes made for Windows ( #3145 )
...
* Revert "core: return error response when wrong passphrase is passed to start"
This reverts commit ea319313f1 .
* Revert "core: support closing/re-opening store on chat stop/start (#3132 )"
This reverts commit 3c7fc6b0ee .
2023-09-29 11:14:10 +01:00
spaced4ndy
957f3b3eb0
core: delete unused contact silently ( #3140 )
2023-09-28 13:16:03 +04:00
Evgeny Poberezkin
ea319313f1
core: return error response when wrong passphrase is passed to start
2023-09-27 21:15:19 +01:00
spaced4ndy
c64d1e8361
core: notify contact about contact deletion ( #3131 )
2023-09-27 19:36:13 +04:00
Evgeny Poberezkin
3c7fc6b0ee
core: support closing/re-opening store on chat stop/start ( #3132 )
...
* core: support closing/re-opening store on chat stop/start
* update .nix refs
* kotlin: types
* add test
* update simplexmq
2023-09-27 15:26:03 +01:00
Evgeny Poberezkin
b3e880ee54
core: optimize C apis ( #3100 )
...
* core: optimize C apis
* more
* fix tests
* use pokeByteOff
* write lazy bytestring to buffer without conversion to strict
* avoid conversion of JSON to strict bytestrings
2023-09-22 13:45:16 +01:00
Evgeny Poberezkin
92ac3e2a8a
core: update contact and member profiles for both sides when contact is created with member (WIP) ( #3081 )
...
* core: update contact and member profiles for both sides when contact is created with member (WIP)
* send both sides, correctly process update
* refactor
* revert diff
* comments
* test
---------
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
2023-09-20 16:45:04 +04:00
Evgeny Poberezkin
52966e7e3d
core: optionally encrypt SMP files ( #3082 )
...
* core: optionally encrypt SMP files
* encrypt to temp file and rename or remove encryption args if it fails
* fix file encryption error handling
2023-09-20 13:05:09 +01:00
spaced4ndy
1928256b09
core: connect existing contacts to new members when profile matches, enable skipping direct connections in groups ( #3056 )
...
* core: test group members are assigned different LDNs in group when direct connections aren't created
* disable test output
* core: connect existing contacts to new members when profile matches (#3059 )
* core: connect existing contacts to new members when profile matches
* fix migration
* progress
* xInfoProbeOk for member
* fix tests
* add test
* fix tests
* tests
* remove deleteSentProbe
* remove deleteContactProfile_
* views
* don't check connections in deleteUnusedProfile_
* Revert "don't check connections in deleteUnusedProfile_"
This reverts commit 2016a0efde .
* fix test
* core: update member merge
* update saved schema
* fix queries and tests
* rename tables to original names
* remove index, corrections
* update schema dump
---------
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
---------
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2023-09-19 21:26:03 +01:00
Evgeny Poberezkin
904b758e79
Merge branch 'master' into master-ghc9
2023-09-18 21:46:27 +01:00
spaced4ndy
04770fb30d
core: terminal api to send message to / connect with member contact ( #3065 )
...
* core: terminal api to send message to / connect with member contact
* style
---------
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2023-09-16 21:30:20 +04:00
spaced4ndy
0e5b16498a
core: api to create contacts with group members ( #3053 )
...
* core: api to create contacts with group members
* implementation
* fix contact replace, more tests
* comment
* rename fields
* fix
* fix
* test group is still incognito
* fix
* replace connection instead of contact
* fix
* check version
* style, names
---------
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2023-09-16 17:55:48 +04:00
spaced4ndy
8178e8183e
core: show rcv file error ( #3054 )
2023-09-13 15:28:46 +04:00
spaced4ndy
01f99baaac
Revert "core: direct messages in group ( #2994 )"
...
This reverts commit 5fddf64adb .
2023-09-12 17:36:47 +04:00
spaced4ndy
5fddf64adb
core: direct messages in group ( #2994 )
2023-09-11 18:38:57 +04:00
Evgeny Poberezkin
fedc31c72c
Merge branch 'master' into master-ghc9
2023-09-10 21:11:35 +01:00
Alexander Bondarenko
2dff6c8859
core: do not subscribe to new connections from iOS NSE (subscribe=off flag), subscribe in app when it activates ( #3016 )
...
* Trace auto-subs flag
* Replace Bool with SubscriptionMode
* Add subscriptionMode to chat controller
* Start using subscriptionMode in event handlers
* Add need_subs to chat connections
* Add onlyNeeded to subscribeUserConnections
* Post-rebase fixes
* Pass onlyNeeded to Store functions
* Drop needs_sub for connections registered with agent
* update simplexmq, fix activate
* fix rebase, reduce diff
* fix rebase, tests
* fix rebase, executeMany, always subscribe on activate
* test
* update queries
* Update src/Simplex/Chat.hs
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
* unset connections to subscribe on start
* update simplexmq
---------
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
2023-09-10 20:40:15 +01:00
Evgeny Poberezkin
82fd3b9004
core: change encoding of the result returned by chat_read_file C API ( #3036 )
...
* core: change encoding of the result returned by chat_read_file C API
* remove unused dependency
* remove pointer cast
2023-09-07 20:18:43 +01:00
Evgeny Poberezkin
b5a0269aa2
core: support unicode filenames and catch IO exceptions in C API for local file encryption ( #3035 )
...
* core: support unicode filenames in C API
* catch IO exceptions and return as errors
2023-09-07 13:44:37 +01:00
Evgeny Poberezkin
edeaf36e8b
core: C api to encrypt/decrypt local app files ( #3029 )
...
* core: C api to encrypt/decrypt local app files
* do not call CF.hPut with empty chunk
2023-09-06 19:54:13 +01:00
spaced4ndy
37eef3c6c9
core: enable creation of direct connections in group (revert this instead of #3022 ) ( #3025 )
2023-09-06 18:05:42 +04:00
spaced4ndy
b6c23b59ca
core: change logic of checking if peer supports feature (check if peer version is compatible) ( #3024 )
2023-09-06 17:48:37 +04:00
spaced4ndy
e6baca5610
core: rename conn vrange into peer vrange ( #3023 )
2023-09-06 11:41:23 +04:00
spaced4ndy
0c4b843a3f
Merge branch 'master' into chat-version-negotiation
2023-09-06 10:41:06 +04:00
spaced4ndy
68f359c904
core: enable creation of direct connections in group for chat protocol v2 (for beta; to be reverted for full release) ( #3022 )
2023-09-06 10:15:32 +04:00
spaced4ndy
43e233f0eb
core: don't create direct connections in group ( #2996 )
2023-09-05 20:15:50 +04:00
Evgeny Poberezkin
4793173465
core: update return type of read/write file C api, tests ( #3010 )
2023-09-03 22:25:19 +01:00
Evgeny Poberezkin
af02a92442
core: fix WebRTC encryption, test ( #3005 )
2023-09-02 23:34:00 +01:00
Evgeny Poberezkin
0b214acf97
core: support encrypted local files ( #2989 )
...
* core: support encrypted local files
* add migration
* update agent api, chat api
* fix query, exported functions to read/write files
* update simplexmq
* remove formatting changes
* test, fix file size
* reduce diff
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
* fail when receiving SMP files with local encryption
* update simplexmq
* remove style changes
---------
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
2023-09-01 19:43:27 +01:00
spaced4ndy
7a5d4a5a3d
core: communicate connection chat version range ( #2886 )
...
* core: communicate connection chat version range
* encoding
* type
* implementation wip
* contact requests
* tests
* more tests
* refactor
* remove comment
* change encoding
* remove Maybe
---------
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2023-09-01 19:20:07 +04:00
Moritz Angermann
761ddac55d
core: use GHC 9.6.2 ( #2641 )
...
* Make it compiler with 9.6
Can be built with:
cabal build all -j --allow-newer=base --allow-newer=ghc-prim --allow-newer=template-haskell --allow-newer=bytestring --allow-newer=memory --allow-newer=cryptonite
Using ghc 9.6
It mostly runs afoul of https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0366-no-ambiguous-field-access.rst
* compile with GHC 9.6.2: dependencies, imports, code
* update GHC version in CI
* update GHC version in desktop build scripts
* update simplexmq, sha256map.nix
* update compiler
* update simplexmq, direct-sqlcipher
* remove missing files from .cabal
* building on desktop
* mac build changes
* added version back
* building libffi from source
* update simplexmq
---------
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
Co-authored-by: Avently <7953703+avently@users.noreply.github.com >
2023-08-24 21:56:37 +01:00
Evgeny Poberezkin
75d11c2b4f
core: update simplexmq (fix repeated HELLO message) ( #2962 )
...
* core: update simplexmq (fix repeated HELLO message)
* add callstack to tests
2023-08-21 21:45:16 +01:00
Evgeny Poberezkin
41c68c82ac
directory: add to website, send terms, sort search results ( #2950 )
...
* directory: add to website, send terms, sort search results
* corrections
2023-08-18 14:31:42 +01:00
spaced4ndy
4a5dd0a3a4
core: add indexes to improve slow queries performance ( #2931 )
...
* core: add indexes to improve slow queries performance
* idx_chat_items_group_id
* update simplexmq, schema
* update simplexmq
* remove index
* update simplexmq
---------
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2023-08-16 10:41:52 +04:00
Evgeny Poberezkin
e326227d06
cli: change default member role from "admin" to "member" ( #2915 )
2023-08-14 07:37:04 +01:00
Evgeny Poberezkin
113669ac16
core: track slow SQL queries ( #2904 )
...
* core: track slow SQL queries
* fixes
* update simplexmq
2023-08-12 18:27:10 +01:00
Evgeny Poberezkin
837b6dcf46
directory: do not send welcome message to members joining the group ( #2895 )
2023-08-11 10:38:56 +01:00
Evgeny Poberezkin
38dc14f041
core: update simplexmq (revert DB busy error handling)
2023-08-09 16:45:31 +01:00
Evgeny Poberezkin
5353b466a9
directory: remove welcome when contact joins via group, member count in approval, chat commands via bot ( #2872 )
...
* directory: remove welcome when contact joins via group, member count in approval, chat commands via bot
* disable bot tests
* rename command
2023-08-08 16:06:56 +01:00
spaced4ndy
d80ee14f77
Revert "Revert "core: rework incognito mode - set per connection ( #2838 )""
...
This reverts commit b003d659e4 .
2023-08-08 17:25:28 +04:00
Evgeny Poberezkin
53662ef077
directory: store log ( #2863 )
...
* directory: store log
* store log test (fails)
* fix store log
2023-08-07 08:25:15 +01:00
Evgeny Poberezkin
4826a62d36
directory: list groups with group member counts ( #2855 )
...
* directory: list groups with group member counts
* list groups, test
* superuser can list all groups
* rename command
* remove type synonym
* add member count to search results
* fix test
2023-08-06 11:56:40 +01:00
Evgeny Poberezkin
8f72328136
directory: delist/relist groups when service or owner roles change ( #2844 )
...
* directory: delist/relist groups when service or owner roles change
* test role changes
* correction
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
* directory: suspend and resume group listing (#2848 )
* directory: suspend and resume group listing
* correction
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
---------
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
---------
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
2023-08-04 09:23:16 +01:00
Evgeny Poberezkin
497275646d
directory: registration of duplicate groups ( #2840 )
...
* directory: confirm registration of duplicate groups
* do not send duplicate groups for approval
* add test
2023-08-03 09:21:48 +01:00
Evgeny Poberezkin
e2d5ad0e48
Merge branch 'master' into directory-service
2023-08-02 16:25:56 +01:00
Evgeny Poberezkin
e34a8ef719
Merge branch 'stable'
2023-08-02 16:23:17 +01:00
Evgeny Poberezkin
e30f7695ab
core, ios: fix markdown ( #2837 )
2023-08-02 16:22:20 +01:00