Evgeny Poberezkin
d0134da3f4
fix migration
2023-09-15 17:53:10 +01: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
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
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
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
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
spaced4ndy
ae9b83515c
core: group snd status ( #2763 )
...
* core: group snd status
* schema, implementation
* refactor direct, tests
* configure, tests
* item info
* refactor
* refactor
* remove do
* rename
* remove receipts on events
* refactor
* refactor
* refactor
* refactor
* tests
* rename tests
* aggregates
* fix name
* refactor
---------
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2023-07-26 14:49:35 +04:00
Evgeny Poberezkin
0f4473d272
core: delivery receipts ( #2644 )
...
* core: delivery receipts
* update simplexmq
* preference, migration
* add activated state to receipts preference, update tests
* set receiveReceipts as activated on new profiles
* update simplexmq, fix tests
* update simplexmq, fix withAckMessage
* one more option
* more
* use tryChatError in ack message
* enable all tests
* rename pref
* update item status on delivery receipts
* show receipts for tests
* remove chat preference for delivery receipts
* add user, contact and group settings for delivery receipts
* only send delivery receipts if enabled for the contact or user profile (and not disabled for the contact)
* fix tests
* reuse event, test
* configure per contact - db, api, test
* rename commands
* update simplexmq
---------
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
2023-07-13 23:48:25 +01:00
spaced4ndy
da2622f00e
core: moderate messages that have arrived after the event of moderation ( #2604 )
...
* core: moderate messages that have arrived after the event of moderation
* remove index
* test, delete moderation
* unused selector
* rework
* refactor
* change error
* parameter
* fix syntax
* refactor
* Nothing
---------
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2023-06-22 20:38:09 +04:00
Evgeny Poberezkin
5c105cb746
core: mark chats as favorite ( #2591 )
2023-06-18 12:46:38 +01:00
spaced4ndy
425c7b947f
core: optimize group deletion (delays deletion of unused contacts) ( #2560 )
...
* core: optimize group deletion (wip)
* delay deletion of unused contacts
* clean up, fix test
* rename field
* remove from type, more checks, remove ctx
* remove space
* rename functions
* rename
---------
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2023-06-12 13:45:39 +04:00
spaced4ndy
128883b8a3
core: improve queries performance; delay first chat item expiration cycle on start ( #2521 )
2023-05-29 15:18:22 +04:00
spaced4ndy
8b1e5d3db7
core: add indexes for cleanup, initial delay ( #2514 )
2023-05-26 14:03:26 +04:00
Evgeny Poberezkin
9978957e6c
core: deleted timestamps for chat item ( #2459 )
...
* core: edited and deleted timestamps for item
* migration
* add deleted timestamp to chat item, use chat item if there are no versions
* use broker timestamp for remote deletions
* refactor
2023-05-19 13:52:51 +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
spaced4ndy
c87f4e68f7
core: keep chat item edit history ( #2410 )
2023-05-08 20:07:51 +04:00
spaced4ndy
54fc052e47
core: remove msg_delivery_events unique constraint (recreates table); cleanup old messages ( #2376 )
2023-05-05 13:49:09 +04:00
spaced4ndy
0b57cc08a7
core, ios: include contact addresses in profiles ( #2328 )
...
* core: include contact links in profiles
* add connection request link to contact and group profiles
* set group link on update, view, api
* core: include contact addresses in profiles
* remove id from UserContactLink
* schema, fix test
* remove address from profile when deleting link, tests
* remove diff
* remove diff
* fix
* ios wip
* learn more, confirm save, reset on delete
* re-use in create link view
* remove obsolete files
* color
* revert scheme
* learn more with create
* layout
* layout
* progress indicator
* delete text
* save on change, layout
---------
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2023-04-27 17:19:21 +04:00
spaced4ndy
4d700d113d
core, ios: mark files to receive from NSE, receive marked files on chat start ( #2218 )
2023-04-20 16:52:55 +04:00
spaced4ndy
90dffc975a
core: request and save extra recipient file descriptions ( #2170 )
2023-04-12 14:47:54 +04: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
dfec1cbb02
core: add protocol field to files table ( #2089 )
2023-03-28 14:38:36 +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
60d6a47bdb
xftp: delete agent rcv files on completion, error, item delete ( #2040 )
2023-03-21 15:21:14 +04:00
spaced4ndy
9b7fbfd513
core: rcv file events ( #2002 )
2023-03-14 15:26:40 +04:00
Evgeny Poberezkin
d7f9e17bcb
core: use XFTP to send and receive files ( #1993 )
...
* core: use XFTP to send and receive files
* xftp files progress
* xftp reception stubs, migration
* update simplexmq
* xftp sequence diagram
* additional chat events
* send file via XFTP
* send XFTP file description inline when file is uploaded
2023-03-13 10:30:32 +00:00
Evgeny Poberezkin
7d49209f79
core: initial group member role when joining via link ( #1975 )
...
* core: initial group member role when joining via link
* fix tests
* set role when joining group via link, enable observer test
* show group link when role changes
* amend test
* check role is member or observer when creating a link
2023-03-06 09:51:42 +00:00
Evgeny Poberezkin
9e4499de6d
core: allow admins/owners delete member messages ( #1869 )
...
* core: allow admins/owners delete member messages
* allow message deletion to admins/owners
* deleted by types, schema
* check role
* fix test, view
* view, tests
* comment
* test timed deletion events
* refactor
* refactor
* refactor
---------
Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com >
2023-02-08 11:08:53 +04:00
Evgeny Poberezkin
86151d4ec2
core: drop index causing slow queries ( #1855 )
...
* core: drop index causing slow queries
* update schema
2023-01-29 15:22:09 +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
5c7ad0926c
core: add missing fkey indexes ( #1785 )
2023-01-17 15:45:37 +04:00
JRoberts
424328b9d1
core: agent users ( #1727 )
2023-01-13 13:54:07 +04:00
JRoberts
113c67ec95
core: disable connections on repeat AUTH errors ( #1704 )
2023-01-07 19:47:51 +04:00
JRoberts
54190ffff9
core: add db indexes for faster group deletion ( #1664 )
2022-12-30 16:34:42 +04:00
JRoberts
84d2c408ce
core: optimize chat loading time - faster chat previews queries (item_status index for chat stats), fix live file transfers queries ( #1630 )
...
* core: optimize get chat previews queries (item_status index for chat stats)
* cleanup
* optimize chat loading time
* cleanup
* schema
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2022-12-23 18:37:02 +04:00
JRoberts
74a20ef70c
core: sort chat previews by chat ts ( #1625 )
2022-12-22 17:43:10 +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
6b8705e9f4
core: support for live messages ( #1577 )
2022-12-16 11:51:04 +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
33e7538172
core: group description ( #1538 )
...
* core: group description
* support multi-line welcome message
* fix
2022-12-10 08:27:32 +00:00
JRoberts
bcca0998d5
core: optimize group deletion ( #1529 )
2022-12-09 20:01:31 +04: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
9ad29aa17e
core: full deletion by sender based on preference; don't overwrite item content on "mark deleted" ( #1470 )
2022-11-30 19:42:33 +04:00