Evgeny Poberezkin
d29f1bb0cf
core: use fourmolu styles ( #3470 )
2023-11-26 18:16:37 +00:00
Evgeny Poberezkin
2d4e99d610
cli: set device name for remote control via CLI option ( #3427 )
...
* cli: set device name for remote control via CLI option
* fix
* add property in tests
2023-11-22 22:11:32 +00:00
Evgeny Poberezkin
cc434cda55
Merge branch 'master' into remote-desktop
2023-11-18 18:03:13 +00:00
spaced4ndy
c0e8740f50
core: group message forwarding ( #3360 )
...
* core: group message forwarding types
* xgrpmemcon
* rework xgrpmemcon to use intros table
* only forward w/t error
* forward msg
* xGrpMsgForward, check integrity outside
* deduplicate group messages
* test
* change error
* item forwarded flag
* intro_chat_protocol_version, bump version
* comment
* highly available client option
* more comments
* notify xgrpmemcon on deduplication
* member vrange
* encoding
* remove MsgForward
* remove import
* exclude files from forwarding
* refactor
* rename to align with protocol
* forward more message types
* add events
* remove unused error, function
* add x.file.cancel, x.info and x.grp.mem.new to forwarded messages
* remove unused x.msg.file.cancel
---------
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2023-11-18 17:52:01 +00:00
Evgeny Poberezkin
16bda26022
core: derive JSON with TH ( #3275 )
...
* core: derive JSON with TH
* fix tests
* simplify events
* reduce diff
* fix
* update simplexmq
* update simplexmq
2023-10-26 15:44:50 +01:00
Evgeny Poberezkin
5d4006f291
Merge branch 'master' into remote-desktop
2023-10-13 17:46:14 +01:00
Evgeny Poberezkin
ab290fb068
core: track network statuses, use in commands/events ( #3211 )
...
* core: track network statuses, use in commands/events
* ui types, test
* remove comment
2023-10-13 11:51:01 +01:00
Evgeny Poberezkin
73652e4bba
Merge branch 'master' into remote-desktop
2023-10-12 10:43:59 +01:00
Evgeny Poberezkin
4ecf94dfad
core: move CLI notifications and active chat to view layer (for remote CLI) ( #3196 )
...
* core: move CLI notifications to view layer (to allow notifications in remote CLI)
* remove unused
* refactor activeTo
* move activeTo to ChatTerminal
* refactor
* move back
* remove extension
2023-10-11 09:50:11 +01:00
Evgeny Poberezkin
2b228a893a
Merge branch 'master' into remote-desktop
2023-10-09 17:21:47 +01:00
Evgeny Poberezkin
f31b4e4632
Merge branch 'stable'
2023-10-09 16:00:24 +01:00
Evgeny Poberezkin
985b9837c3
core: api to close database connection ( #3186 )
2023-10-08 16:22:53 +01:00
Evgeny Poberezkin
7959c75df7
Merge branch 'master' into remote-desktop
2023-10-04 16:37:15 +01:00
Evgeny Poberezkin
38be27271f
core: profile names with spaces ( #3105 )
...
* core: profile names with spaces
* test
* more test
* update name validation, export C API
* refactor
* validate name when creating profile in CLI
* validate display name in all APIs when it is changed
2023-10-02 21:56:11 +01:00
Alexander Bondarenko
3e29c664ac
core: remote host/controller types ( #3104 )
...
* Start sprinkling ZoneId everywhere
* Draft zone/satellite/host api
* Add zone dispatching
* Add command relaying handler
* Parse commands and begin DB
* Implement discussed things
* Resolve some comments
* Resolve more stuff
* Make bots ignore remoteHostId from queues
* Fix tests and stub more
* Untangle cmd relaying
* Resolve comments
* Add more http2 client funs
* refactor, rename
* rename
* remove empty tests
---------
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2023-09-27 09:41:02 +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
47b783e727
core: export chat_encrypt_file/chat_decrypt_file
2023-09-06 20:21:43 +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
Moritz Angermann
85ddb646af
core: explicitly set encoding to utf-8 (fixes unicode filenames on mobile) ( #2908 )
...
* Explicitly set encoding to utf-8 on mobile
GHC's rts tries to obtain the encoding from iconv, however this is not
really available on iOS. It therefore defaults to US-ASCII, and then
breaks with unicode data. We now explicitly set this to utf-8 here.
* ormolu
---------
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2023-08-12 18:15:11 +01:00
Evgeny Poberezkin
e1370e8f3c
core: split Store.hs to multiple files for faster re-compilation ( #2589 )
...
* core: split Store.hs to multiple files for faster re-compilation
* remove unused compiler pragmas
2023-06-18 10:20:11 +01:00
Evgeny Poberezkin
46c6f5e615
cli: option to auto-accept files ( #2540 )
...
* cli: option to auto-accept files
* auto-accept works
* test
* add missing field
2023-06-16 13:43:06 +01:00
Evgeny Poberezkin
c06a970987
core: message reactions ( #2429 )
...
* core: message reactions
* remove comments
* core: commands to set reactions
* fix tests
* process reaction messages
* store functions
* include reactions on item updates
* remove print
* view, tests
* load reactions for new items
* test removing reaction
* remove spaces
* limit the number of different reactions on one item
* remove unique constraints
* fix permissions
* indexes
* check chat item content before adding reaction
* fix group reactions
* simpler index
---------
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
2023-05-15 11:28:53 +01:00
Evgeny Poberezkin
5116bfa79c
cli: option to disable notifications, closes #2340 ( #2373 )
2023-05-03 16:40:11 +01:00
Evgeny Poberezkin
5ae0afe1fe
ios: update servers API/UI ( #2149 )
...
* ios: update servers API/UI
* fix UI
* fix
2023-04-06 22:48:32 +01:00
Evgeny Poberezkin
1a3f0bed47
core: update servers API to include XFTP servers, ios: generalize UI to manage servers ( #2140 )
...
* core: update servers API to include XFTP servers, ios: generalize UI to manage servers
* add test
* update migrations to pass tests
* fix readme
* update simplexmq
2023-04-05 21:59:12 +01:00
spaced4ndy
b20824e16c
core: notify about xftp errors ( #2105 )
2023-03-30 18:36:39 +04:00
Evgeny Poberezkin
1f15cf54af
Merge branch 'master' into xftp
2023-03-27 18:57:14 +01:00
Evgeny Poberezkin
c96ba30018
core: support down migrations to allow reverting to the previous version ( #2072 )
...
* core: support down migrations to allow reverting to the previous version
* update schema
* update simplexmq
* rename errors
* remove unused functions
* migration UI, test migration
* update migration UI
* return current migrations in CRVersionInfo
* update simplexmq
* test down migrations
* cleanup ios
* show migrations in log
2023-03-27 18:34:48 +01:00
spaced4ndy
babbca48f8
Merge branch 'master' into xftp
2023-03-23 13:58:23 +04:00
Evgeny Poberezkin
06a0dbd0f2
core, iOS: hidden and muted user profiles ( #2025 )
...
* core, ios: profile privacy design
* migration
* core: user profile privacy
* update nix dependencies
* update simplexmq
* import stateTVar
* update core library
* update UI
* update hide/show user profile
* update API, UI, fix test
* update api, UI, test
* update api call
* fix api
* update UI for hidden profiles
* filter notifications on hidden/muted profiles when inactive, alerts
* updates
* update schema, test, icon
2023-03-22 15:58:01 +00:00
spaced4ndy
34a3387830
core: xftp servers option; use local xftp server in tests ( #2015 )
2023-03-16 14:12:19 +04:00
Evgeny Poberezkin
2b77920dcd
teminal: option to log errors and service messages to file, closes #1516 ( #1957 )
...
* teminal: option to log errors and service messages to file, closes #1516
* rename function
2023-02-28 23:26:08 +00:00
Evgeny Poberezkin
d5f6b76ec5
core: increase default queue sizes to 1024, fix broadcast bot not to lock when queue is smaller than the number of contacts ( #1955 )
2023-02-26 16:36:11 +00:00
Evgeny Poberezkin
a2e5733be6
core: update/fix webrtc frame encryption function to return error ( #1950 )
...
* core: update/fix webrtc frame encryption function to return error
* ios: update C header
* more tests
2023-02-24 20:55:59 +00:00
Evgeny Poberezkin
35a1ce4903
core: separate core options to use in bots ( #1937 )
...
* core: separate core options to use in bots
* ci: install pkg-config for mac
2023-02-18 17:39:16 +00:00
Evgeny Poberezkin
b7575ec01d
core: encrypt/decrypt WebRTC frames ( #1935 )
...
* core: encrypt/decrypt WebRTC frames
* swift API
* add decrypt stub
* change name
* remove unused type
* move functions
* update cabal file
* copy bytes from encrypted string
2023-02-16 20:25:37 +00:00
Evgeny Poberezkin
af414d7f6e
terminal: options for log level and internal queue sizes ( #1755 )
...
* terminal: log levels
* option for internal queue sizes
2023-01-16 09:13:46 +00:00
Evgeny Poberezkin
74245d3f2b
core: agent stats ( #1650 )
2022-12-26 22:24:34 +00:00
Evgeny Poberezkin
7f0355ec67
core: only send voice messages without acceptance ( #1444 )
...
* core: only send voice messages without acceptance
* remove some unnecessary changes
* update
* refactor receiveInlineMode
2022-11-26 22:39:56 +00:00
Evgeny Poberezkin
491fe4a9bf
core, ios: advanced server config ( #1371 )
...
* ios: advanced server config
* simplify UI
* core: ServerCfg
* commit migration, update schema
* add preset servers to response
* return default servers if none saved
* fix test
2022-11-16 15:37:20 +00:00
Evgeny Poberezkin
a72f603e13
core: switch connection ( #1277 )
...
* core: switch connection
* chat items for SWITCH
* additional events for connection switch
* update simplexmq
* test
* comment test output
* update messages for connection switch
Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com >
2022-11-01 13:26:08 +00:00
Evgeny Poberezkin
a977a0dd17
core: single function to initialize the chat controller only if encryption key is correct ( #1107 )
2022-09-23 22:22:56 +04:00
Evgeny Poberezkin
7999e88554
core: fix chatInitKey to pass database key to agent store ( #1010 )
2022-09-02 20:20:43 +01:00
Evgeny Poberezkin
2b5e3a9459
core: C API to migrate and check database ( #1008 )
...
* core: C API to migrate and check database
* update simplexmq
2022-09-02 16:38:41 +01:00
Evgeny Poberezkin
02ca7234fb
use SQLCipher ( #981 )
...
* use SQLCipher
* pass encryption key via CLI options
* update dependencies to use git
* add CONTRIBUTING.md
* move flag, enable build in sqlcipher branch
* update dependencies
2022-08-30 12:49:07 +01:00
Evgeny Poberezkin
aac80dacf7
core: host connection events
2022-08-13 14:18:12 +01:00
Evgeny Poberezkin
4ad1abcbfa
core: support passing all network configuration to the agent ( #868 )
...
* core: support passing all network configuration to the agent
* update simplexmq
2022-08-02 15:36:12 +01:00
Evgeny Poberezkin
4fd13c637c
core: access messaging servers via SOCKS5 proxy ( #835 )
...
* core: access messaging servers via SOCKS5 proxy
* update option info
* update simplexmq
2022-07-23 14:49:04 +01:00
Evgeny Poberezkin
4bf5125c51
core: support combining store functions in one transaction ( #740 )
...
* refactor store functions (WIP - does not compile yet)
* update chat
* update simplexmq
2022-06-18 20:06:13 +01:00
Evgeny Poberezkin
c62d99ab97
core: remove connection pool ( #738 )
...
* core: remove connection pool
* remove local ref from cabal.project
* update simplexmq
* log test
* fix test
2022-06-16 20:00:51 +01:00