Evgeny
f3664619ec
test: track query plans ( #5566 )
...
* test: track query plans
* all query plans
* fix postgres build
2025-01-24 09:44:53 +00:00
Evgeny Poberezkin
a5db36469d
core: api to forward messages ( #3968 )
...
* wip
* wip
* test
* mute
* tests
* simplify (only bool flag)
* re-encrypt file
* tests
* more tests (wip)
* fix relative paths, refactor
* more tests
* more locks
* fix, tests
* more tests
* rework (revert from bool to ids)
* update schema
* more tests
* add to info
* ForwardedMsg container
* Revert "ForwardedMsg container"
This reverts commit bb57f12151 .
* parser
* more tests
* rework api
* more locks
* test
* move
* remove from
* view
* prohibit editing
* item info view
---------
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
2024-04-09 16:02:59 +04:00
Evgeny Poberezkin
868acd18d6
core: support deleting the last profile (always create user record in agent when user is created) ( #3654 )
...
* core: only skip creating agent user when app is first started
* firstTime
* prompt
* fix test
* if
* simplexmq
* ci timeout
* skip test
* add test timeout
* log test times
* simplexmq
* timeout
* simplexmq without new batching
* Revert "simplexmq without new batching"
This reverts commit 9879bcb57c .
* without new batching again
* with builder, without sized builder
* lazy bytestring, same batching logic
* fewer chunks
* remove lazy
* optimize batching in simplexmq
2024-01-17 15:20:13 +00:00
Alexander Bondarenko
bc8a6f4833
core: add notes chat type ( #3568 )
...
* Add chat type "self"
* rename to Notes
* cover more things
* remove quote, tweak sql
* resolve comments
* constrain ACIQDirection to exclude CTLocal
* add CILocalRcv handling
* plug in migrations and tests
* cover more API, implement new folders
* working create/send/tail
* remove interaction with messages
* add note deletion (api-only)
* add folder deletion
* add getLocalChatItemIdByText
* add APICreateChatItem and files
* add protocol check for getFileTransfer protocol
* replace FTLocal with createLocalFile
* add chat previews
* add folder clear
* add reactions
* add read/unread
* add note updates
* resolve some comments
* remove local reactions
* remove folder names, deletion, add autocreate
* add file deletion check
* add preview pagination test
* add per-item file deletion check
* pull mkChatItem out of createLocal to prevent ci record updates
* use - as notes name
* bump migration ts
* update schema
* resolve comments
* add chat pagination test
* use chat queries from Direct instead
* evict note folders from createUserRecord
* switch to - for note folder chat type prefix and use empty name
* fix getLocalChatXxx
* add explicit createCCNoteFolder for tests
* use overloadedstrings for single-line queries
* add suggested chat list tests
* add notes chat to a user-creating test
* throw correct error for missing file
* remove unique check from schema
* add UndecidableInstances for ghc8.10
* switch to * for chat type sigil
* add file safety test
* add drop index
* remove indentation
* remove repeated folder
* remove redundant filter query, NoteFolderName
* don't attempt to cancel local files when deleting chat item
* rename function
* fix comment
* rename
* fix merge
* fix typo
* remove editable limit
* restore comment
* remove local file cancel
* Revert "remove editable limit"
This reverts commit 65df55caf8 .
* refactor
---------
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
2024-01-11 17:01:44 +00: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
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
4a58ca60ac
core: split tests ( #1870 )
2023-02-01 17:21:13 +00:00
Evgeny Poberezkin
b206868730
core: add grop member role "observer" ( #1868 )
...
* core: add grop member role "observer"
* disable observer role until supported by most clients
2023-02-01 13:57:39 +00:00
Evgeny Poberezkin
ea64be55e1
core: fix cancelling inline file transfer ( #1867 )
...
* core: fix cancelling inline file transfer
* fix test
2023-02-01 00:01:22 +00:00
Evgeny Poberezkin
13bd51b97d
core: prevent making all users inactive when duplicate user is created ( #1862 )
...
* core: prevent making all users inactive when duplicate user is created
* skip async group test
2023-01-31 12:24:18 +00:00
Evgeny Poberezkin
a1ed0a84b8
core: use port 7001 for test server ( #1857 )
...
* core: use port 7001 for test server
* enable only failing tests
* start/stop server for every test
* log message that failed to parse
* stop chat synchronously
* print call stack
* add HasCallStack
* increase test timeout
* add call stacks
* more call stacks
* fix test
* disable failing test
* add delay between the tests
* make delay more visible
* remove change in error message
* reduce test delay, increase timeout
* increase delay between the tests
* run each test with a database in a different folder
* folder name
* refactor
* update nix file, more stacks
2023-01-31 11:07:48 +00:00
JRoberts
74df35d3b0
core: add multiple users tests for subscription, chat item expiration, timed messages ( #1840 )
2023-01-25 19:29:09 +04:00
JRoberts
bc1d86e303
core: send agent DEL events to view ( #1832 )
2023-01-24 20:07:35 +04:00
Evgeny Poberezkin
b386346cf1
core: update syntact for /_delete ( #1831 )
2023-01-24 16:00:32 +00:00
JRoberts
2a20f78877
core: use batch connection deletion api ( #1814 )
2023-01-24 16:24:34 +04:00
Evgeny Poberezkin
a0bf298b66
Merge branch 'master' into users
2023-01-23 18:45:52 +00:00
JRoberts
ab4e4e1db9
core: test cancelling inline file transfer ( #1827 )
...
* core: test cancelling inline file transfer
* tests
2023-01-23 18:27:44 +00:00
JRoberts
ca64ed9784
core: option to reuse servers for new user; support for users to configure same smp servers (add user_id to smp_servers UNIQUE constraint) ( #1792 )
2023-01-18 18:49:56 +04:00
JRoberts
a227e21fcf
core: support user deletion ( #1788 )
...
* core: support user deletion
* doSendCancel
* Apply suggestions from code review
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
* sendCancel
* refactor
* error to view
* refactor
* refactor
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2023-01-18 17:08:48 +04:00
JRoberts
2f39cfd86f
core: support marking chat items read for any user ( #1784 )
2023-01-17 13:08:51 +04:00
JRoberts
2fdc23274d
core: return user unread counts on ListUsers command ( #1763 )
...
* core: return user unread counts on ListUsers command
* split
* tests
* refactor
* viewUserInfo
* refactor
* remove omit nothing
* corrections
* fix
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2023-01-16 18:57:31 +00:00
JRoberts
24c47657f4
Merge branch 'master' into users
2023-01-16 16:37:13 +04:00
Evgeny Poberezkin
774af334fd
terminal: command to show the most recent chats ( #1756 )
...
* terminal: command to show the list of the last active chats
* indent for chats without messages, help
* update command in the test
2023-01-16 12:10:47 +00:00
JRoberts
9dc6c1327f
core: manage calls for all users ( #1748 )
2023-01-16 15:06:03 +04:00
JRoberts
cccdcef914
core: add delays to tests to prevent output races ( #1736 )
2023-01-13 16:26:55 +04:00
JRoberts
424328b9d1
core: agent users ( #1727 )
2023-01-13 13:54:07 +04:00
JRoberts
7323bb4333
Merge branch 'master' into users
2023-01-11 18:38:55 +04:00
JRoberts
41e873d5ca
core: multiple users view, tests ( #1710 )
2023-01-11 11:00:28 +04:00
JRoberts
810f248c74
core: test async file transfer (sender & receiver restarts); close files in stopChatController; handle openFile error in getFileHandle ( #1716 )
2023-01-10 20:52:59 +04:00
JRoberts
ad1b091b18
Merge branch 'master' into users
2023-01-09 17:02:38 +04:00
JRoberts
113c67ec95
core: disable connections on repeat AUTH errors ( #1704 )
2023-01-07 19:47:51 +04:00
JRoberts
ae5deab8d3
core: print error context on agent errors ( #1697 )
2023-01-06 13:11:21 +04:00
JRoberts
bb0482104c
core, ios, android: add UserId to api commands ( #1696 )
2023-01-05 20:38:31 +04:00
Evgeny Poberezkin
edfece3206
core: test for live messages ( #1694 )
2023-01-05 09:08:31 +00:00
Evgeny Poberezkin
aae0802ec8
core: chat items with offered feature ( #1620 )
...
* core: chat items with offered feature
* texts
Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com >
* new preference items
* test
Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com >
2022-12-22 14:56:29 +00:00
JRoberts
ece928d57e
core: update ttl in contact user preference on profile update, fix api, tests; fix global user preferences not being updated in controller state ( #1617 )
2022-12-21 19:54:44 +04:00
JRoberts
9e045a44db
Revert "core: confirm ttl change to ensure consistent setting ( #1587 )"
...
This reverts commit 34e08b2058 .
2022-12-21 14:10:05 +04:00
JRoberts
34e08b2058
core: confirm ttl change to ensure consistent setting ( #1587 )
...
* core: confirm ttl change to ensure consistent setting
* wip
* confirm_pref_pending
* xInfo
* test api
* send confirmPrefProfile
* refactor
* don't return contact
* refactor profile update
* refactor further
* refactor further
* refactor xInfo
* refactor xInfo further
* refactor
2022-12-20 22:00:46 +04:00
Evgeny Poberezkin
5e9b7366cc
core: refactor chat item updates ( #1611 )
...
* core: refactor chat item updates
* removed unused function
* refactor
* refactor
2022-12-20 12:58:15 +00:00
Evgeny Poberezkin
64fb1f0b85
core: do not start disappearing timer for live messages until they stop being live, and start it on item update instead, provided they are read ( #1609 )
...
* core: do not start disappearing timer for live messages until they stop being live, and start it on item update instead, provided they are read
* change delays in tests
* diffInSeconds
2022-12-20 10:17:29 +00:00
JRoberts
84e43c57f6
core: ttl in feature chat items, view responses ( #1595 )
...
* core: ttl in feature chat items, view responses
* fix tests
* fix test
* view
* refactor
* use prefChangedValue
* use groupPrefChangedValue
* use cupIntValue
* simplify types
* groupFeatureState
* groupPrefToText
* prefToText, view
* remove prefFeature
* rename intValue -> param
* int -> param
* timedTTLText
* remove pragma
* restore pragma
* simplify
* timedTTLText
* fix tests
* off, after
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2022-12-19 21:18:59 +04:00
Evgeny Poberezkin
86271fe109
terminal: support live messages ( #1597 )
...
* terminal: toggle live message updates
* terminal: send live messages (#1599 )
* terminal: send live messages
* show edited messages
* send and continue live message with Alt-Enter
* truncate live messages to full words
* remove comments
* refactor
* refactor to avoid clearing live message prompt and show it faster
* $
Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com >
Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com >
Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com >
2022-12-19 11:16:50 +00:00
JRoberts
5dab099b5c
core: increase thread delays in timed messages tests
2022-12-19 11:21:51 +04:00
Evgeny Poberezkin
4ab7e5e1c8
terminal: command to get last item ID (to reference it in the tests) ( #1596 )
...
* terminal: command to get last item ID (to reference it in the tests)
* lastItemId
Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com >
2022-12-17 19:33:58 +04:00
JRoberts
f128ebac87
core: timed messages terminal api, tests ( #1591 )
2022-12-17 14:49:03 +04:00
JRoberts
cee403c1ed
core: simplify terminal mark messages read logic ( #1589 )
2022-12-16 15:56:16 +04:00
JRoberts
0e837ae392
core: timed messages ( #1561 )
...
* docs: disappearing messages rfc
* change schema
* word
* wip
* wip
* todos
* todos
* remove cancel, refactor
* revert prefs
* CITimed
* schema
* time on send direct
* time on send group
* add ttl to msg container, refactor
* timed on receive
* time on read
* getTimedItems, fix tests
* mark read in terminal - view, input, output, fix tests
* refactor
* comment
* util
* insert atomically
* refactor
* use guards
* refactor startTimedItemThread
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2022-12-15 15:17:29 +04:00
Evgeny Poberezkin
7b8f5be821
core: type for group preference for timed messages ( #1568 )
...
* core: type for group preference for timed messages
* remove unused func
2022-12-14 12:30:24 +04:00
Evgeny Poberezkin
678dbec3e2
core: different types for chat preferences, to allow parameters ( #1565 )
2022-12-13 14:52:34 +00:00
Evgeny Poberezkin
146d5f99bc
core: clear connection verification status ( #1540 )
2022-12-10 12:09:45 +00:00