Evgeny Poberezkin
d8cc867099
update simplexmq
2023-03-18 16:18:59 +00:00
Evgeny Poberezkin
66ea2d5d71
Merge branch 'stable'
2023-03-18 08:38:10 +00:00
Evgeny Poberezkin
3dd5b5d835
core: 4.5.4.2 (add stateTVar imports)
2023-03-18 07:59:43 +00:00
428db2f8f4
core: fix unused contact deletion ( #2023 )
...
* core: failing test for leaving and deleting the group joined via link
* fix test
* merge logic
* fix
* add condition
* refactor
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
* compiles
---------
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com >
2023-03-17 16:03:19 +04:00
Evgeny Poberezkin
f915eb2a20
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-16 22:19:51 +00:00
Evgeny Poberezkin and GitHub
2817306659
core: types to support xftp ( #1971 )
...
* core: types to support xftp
* migration, amend types
* update protocol / types
* update protocol, types
* update schema, simplexmq
2023-03-09 11:01:22 +00:00
Evgeny Poberezkin and GitHub
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
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 and GitHub
86151d4ec2
core: drop index causing slow queries ( #1855 )
...
* core: drop index causing slow queries
* update schema
2023-01-29 15:22:09 +00:00
Evgeny Poberezkin
e3b22d83ad
Merge branch 'master' into users
2023-01-23 18:45:24 +00:00
JRoberts and GitHub
1b01dcec6d
core: fix inline file transfer - optional connection ids in RcvFileInfo, update rcv_file_inline on accept ( #1823 )
...
* core: optional connection id in RcvFileInfo
* query
* check snd cancel
* Revert "check snd cancel"
This reverts commit f16651345d .
* update rcv_file_inline
2023-01-23 15:55:19 +00:00
JRoberts and GitHub
c337a6888d
core: delete previous contact calls when receiving a new one ( #1812 )
2023-01-21 16:40:24 +04:00
JRoberts and GitHub
e72d4638d2
core: exlude muted chats from user unread count ( #1810 )
2023-01-20 20:48:24 +04:00
JRoberts and GitHub
7dd4dc3b40
core: support accepting contact requests for non active users (for accepting via notification) ( #1809 )
...
* core: support accepting contact requests for non active users (for accepting via notification)
* getContactRequest'
2023-01-20 17:55:57 +04:00
JRoberts and GitHub
ef15dca0b4
core: don't filter out non active user connections on UP & DOWN agent events; use agent connection id instead of db connection id for ContactRef ( #1807 )
2023-01-20 15:02:27 +04:00
JRoberts and GitHub
cf4105e256
core: add connection id to ContactRef ( #1798 )
2023-01-19 20:54:00 +04:00
JRoberts and GitHub
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
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 and GitHub
a668bd5736
core: cleanup obsolete chat item deletion code (see #1625 ) ( #1787 )
2023-01-17 16:58:36 +04:00
JRoberts and GitHub
5c7ad0926c
core: add missing fkey indexes ( #1785 )
2023-01-17 15:45:37 +04:00
JRoberts and GitHub
2f39cfd86f
core: support marking chat items read for any user ( #1784 )
2023-01-17 13:08:51 +04:00
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 and GitHub
3ed5e6e50b
core: support receiving file by id for any user (not only current) ( #1759 )
2023-01-16 17:51:25 +04:00
JRoberts and GitHub
9dc6c1327f
core: manage calls for all users ( #1748 )
2023-01-16 15:06:03 +04:00
Evgeny Poberezkin and GitHub
e63e158b2d
core: refactor withUserId ( #1735 )
...
* refactor withUserId
* update
* more
2023-01-13 16:24:54 +04:00
JRoberts and GitHub
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 and GitHub
41e873d5ca
core: multiple users view, tests ( #1710 )
2023-01-11 11:00:28 +04:00
JRoberts and GitHub
813fecddfe
core: fix live file transfers queries ( #1715 )
2023-01-10 16:22:21 +04:00
JRoberts
ad1b091b18
Merge branch 'master' into users
2023-01-09 17:02:38 +04:00
JRoberts and GitHub
113c67ec95
core: disable connections on repeat AUTH errors ( #1704 )
2023-01-07 19:47:51 +04:00
fa9e0086f6
core: multiple users api ( #1679 )
...
* api
* UCR
* Revert "UCR"
This reverts commit 1f98d25192 .
* comment
* events User
* events in api User
* CRActiveUser in APISetActiveUser
* process message with/without connection
* refactor
* mute error
* user in api responses
* name
* lost response
* user in CRChatCmdError
* compiles
* user in CRChatError
* -- UserId
* mute unused warning
* catch in withUser
* remove comment
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2023-01-04 21:06:28 +04:00
JRoberts and GitHub
54190ffff9
core: add db indexes for faster group deletion ( #1664 )
2022-12-30 16:34:42 +04:00
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 and GitHub
74a20ef70c
core: sort chat previews by chat ts ( #1625 )
2022-12-22 17:43:10 +04:00
JRoberts and GitHub
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 and GitHub
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 and GitHub
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 and GitHub
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
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
Evgeny Poberezkin and GitHub
d105e59655
core: set item that was live as 0, that was never live as NULL (Maybe Bool type) ( #1594 )
...
* core: set item that was live as 0, that was never live as NULL (Maybe Bool type)
* fix
2022-12-17 13:58:16 +00:00
JRoberts and GitHub
e410fc7736
core: fix mark read queries ( #1592 )
2022-12-16 14:32:37 +00:00
Evgeny Poberezkin and GitHub
f5bd6eb4c3
core: do not mark live items as editied until it's no longer live ( #1590 )
...
* core: do not mark live items as editied
* Update src/Simplex/Chat/Store.hs
* mark item as edited when it stops being live
2022-12-16 12:31:35 +00:00
Evgeny Poberezkin and GitHub
6b8705e9f4
core: support for live messages ( #1577 )
2022-12-16 11:51:04 +04:00
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
JRoberts and GitHub
e00ef7c7da
core: improve stability of file transfer handshake by using async agent commands ( #1541 )
2022-12-12 16:33:07 +04:00
Evgeny Poberezkin and GitHub
33e7538172
core: group description ( #1538 )
...
* core: group description
* support multi-line welcome message
* fix
2022-12-10 08:27:32 +00:00
JRoberts and GitHub
bcca0998d5
core: optimize group deletion ( #1529 )
2022-12-09 20:01:31 +04:00
Evgeny Poberezkin and GitHub
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