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
Evgeny Poberezkin
33e7538172
core: group description ( #1538 )
...
* core: group description
* support multi-line welcome message
* fix
2022-12-10 08:27:32 +00:00
Evgeny Poberezkin
a4f207875f
show /create link command when group is created ( #1536 )
2022-12-09 18:22:03 +00:00
Evgeny Poberezkin
95cc9e1e55
core: verify connection ( #1530 )
...
* core: verify connection
* update commands
* api to get/set verification code/status
* add migration
* refactor
* change command / response names
* reset verified status if code from agent doesn't match
2022-12-09 15:26:43 +00:00
JRoberts
9893aa665a
core: don't mark contacts as used on api get chat ( #1522 )
2022-12-07 19:05:32 +04:00
JRoberts
4319a581ca
core: more test cases checking deletion of unused contacts and incognito profiles ( #1513 )
2022-12-06 20:19:01 +04:00