Igor Sirotin
edcb8ba3b8
fix: sync pending contacts ( #4986 )
2024-03-26 13:47:12 +00:00
Mohamed Javid
1886dc3360
[Feature] Allow setting TestNetworksEnabled in Create/Restore Account ( #4971 )
...
This commit adds the ability to set the "TestNetworksEnabled" flag while creating an account.
Function affected: "generateOrImportAccount"
This helps Dev/E2E/PR builds to enable Test Networks by default and disable them on release/nightly builds.
Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
2024-03-26 17:08:16 +05:30
Igor Sirotin
0d9b6138d6
fix: race condition with empty PreferredName (status-desktop/14053) ( #4981 )
2024-03-25 15:43:45 +00:00
Patryk Osmaczko
7f44d4d12a
refactor: remove unused `COMMUNITY_EVENTS_MESSAGE_REJECTED`
2024-03-25 13:18:20 +01:00
Mikhail Rogachev
e878f89b65
fix: Remove proof of membership for the profile showcase communities ( #4961 )
...
https://github.com/status-im/status-desktop/issues/14084
2024-03-22 21:50:15 +01:00
Mykhailo Prakhov
b931a75bd8
fix: crash on control node side dutring handling edited shared address from the member who left the community ( #4967 )
2024-03-22 15:25:37 +01:00
Mikhail Rogachev
c7e7445f5c
Fix: ignore nil contact 'IsDisplayNameDupeOfCommunityMember' ( #4956 )
2024-03-21 20:43:51 +01:00
Patryk Osmaczko
0aed93ff04
fix: encrypt community's Categories and ActiveMembersCount
...
fixes : #4943
fixes : #4944
2024-03-20 18:41:07 -04:00
Andrea Maria Piana
894eb5758e
Add canView to chat & fix admin role
2024-03-20 16:48:07 -04:00
Igor Sirotin
c85bf76f21
fix: Update and improve `TestFetchRealCommunity` ( #4949 )
2024-03-20 18:10:02 +00:00
Mykhailo Prakhov
ad342c8887
feat: get and delete community member messages API ( #4932 )
2024-03-19 20:44:49 +01:00
Sean Hagstrom
b911297a3d
Feature: store and retrieve a contact's bio ( #4916 )
...
* chore: create migration for adding bio field to contacts table
* feature: update contact persistence to save and query contact bio
* test: ensure that the protocol can store and retrieve contact bio data
2024-03-19 18:09:13 +00:00
Pablo Lopez
78bf40994a
remove confusing debug log ( #4948 )
2024-03-19 19:11:18 +02:00
Mykhailo Prakhov
a1033f466a
feat: add new CommunityMemberState - CommunityMemberBanWithAllMessagesDelete ( #4941 )
2024-03-19 14:40:23 +01:00
kaichao
f0d6a4f64f
Send direct message using CLI ( #4913 )
...
* feat: send dm with cli
* fix: send contact request works
* feat: accept contact request
* feat: send dm
* fix: log
* feat: more dm
* fix: lint
* refactor: fix comments
* fix: more refactor
* fix: refoctor more
* fix: more refacotr
* fix: refactor dm
* fix: context from cli
* fix: add light mode flag
* fix: remove sleep when start node
* fix: better log
* fix: better logger
* fix: lint
* fix: comments
* fix: const flags
* fix: named logger
* feat: inteactive mode
* fix: send message in loop
* fix: better context manage
* feat: cli serve
* fix: readme
* extract to multi files
* fix: status cli rpc
* feat: create and login account
* fix: missing messagess
* fix: missing messages because data sync is not started.
* feat: start http service
* fix: lint
* fix: more build instructions.
* fix: review comments
2024-03-19 08:31:35 +08:00
Patryk Osmaczko
17c5ab414b
fix: ensure `CommunityDescription` reprocessing on decryption failure
...
Previously, `CommunityDescription` instances failing partial decryption
were not reprocessed due to duplicate message check. This commit fixes
the issue by bypassing the check for such descriptions, allowing their
reprocessing upon receiving missing encryption key.
fixes : status-im/status-desktop#13647
2024-03-18 22:24:24 +01:00
Igor Sirotin
b9d9938209
make generate
2024-03-18 15:01:29 +01:00
Michal Iskierko
8bf03609fc
feat: Add HideIfPermissionsNotMet to CommunityChat struct
...
Issue #13291
2024-03-18 15:01:29 +01:00
Mikhail Rogachev
0aa1fb9eff
Fix: handle accepted contact verifaction if persistedVR is null ( #4918 )
2024-03-14 20:56:26 +01:00
Andrea Maria Piana
2311da2475
Port back migrations from release branch
2024-03-14 13:27:12 +00:00
Mikhail Rogachev
b987e8d6f5
Fix: the validation of collectibles should not be dependent on capitalization ( #4917 )
2024-03-13 15:19:33 +01:00
Michal Iskierko
9db149d4f6
feat: handling replies for bridged messages
...
BridgeMessage struct has MessageID and ParentMessageID.
MessageID keeps the original Discord message ID.
ParentMessageID keeps the original Discord parent message ID (response_to).
When the new bridge message is received, corresponding status message response_to field is updated.
Issue #13258
2024-03-13 12:50:15 +01:00
Andrea Maria Piana
67dfff2324
Add index to hash ratchet & cache processed description
2024-03-13 11:35:11 +00:00
Ibrahem Khalil
8c0e24dc26
Add favicons to external link previews ( #4788 )
2024-03-12 22:47:51 +02:00
Jonathan Rainville
3f1547fc63
chore: add test that validates that the member role gets updated
2024-03-12 11:04:45 -04:00
Jonathan Rainville
6f119b9c53
fix(community): fix member role not being updated
2024-03-12 11:04:45 -04:00
Jonathan Rainville
605e3a4ed0
fix(community): fix editing a community channel loses the members
2024-03-12 11:04:45 -04:00
Jonathan Rainville
e3810148d8
feat: add ViewersCanPostReactions to Chat object
...
Needed https://github.com/status-im/status-desktop/issues/13523
2024-03-12 11:04:45 -04:00
Patryk Osmaczko
b02e3b19e2
feat: add permissions reevaluation request
...
Token master can't manage members directly, so it must request
reevaluation from the control node.
fixes : status-im/status-desktop#13778
2024-03-12 14:15:01 +01:00
Patryk Osmaczko
1de61d1933
fix: channel members evaluation on request acceptance
...
If there is only `viewAndPost` permission set on a channel, members who
don't satisfy the criteria shouldn't be able to view the channel.
2024-03-12 14:15:01 +01:00
Patryk Osmaczko
2995518939
chore: skip flaky TestSetStorenodeForCommunity_fetchMessagesFromNewStorenode
2024-03-11 22:02:07 +01:00
Igor Sirotin
c8044bf400
chore: disable curated communities loop in tests ( #4894 )
2024-03-09 09:42:06 +00:00
Mikhail Rogachev
6522d52016
Feat: Simplify profile showcase preferences ( #4854 )
...
* Feat: simplify profile showcase preferences
* Feat: remove old profile showcase preferences on save
* Feat: add getters for showcase entries limits
2024-03-08 17:20:23 +01:00
Igor Sirotin
5a54d703c7
fix: flaky test request profile info ( #4895 )
2024-03-08 15:50:46 +00:00
Igor Sirotin
c3e7d3823f
fix: process empty albumId in albumMessages ( #4874 ) ( #4898 )
...
* fix: process empty albumId in albumMessages
* fix: right `prepareMessage` for empty album
2024-03-08 13:48:22 +00:00
Igor Sirotin
7f671f7632
chore: make generate with custom `-modtime` ( #4896 )
2024-03-08 09:25:17 +00:00
frank
deb56c2c81
fix: race condition on updating account.Name during handle BackupData
2024-03-07 20:18:50 +08:00
Godfrain Jacques
0e37ec2058
Fix contact details large image is always empty ( #4864 )
...
fixes #13563 contact details largeImage is always empty
2024-03-06 09:25:19 -08:00
Patryk Osmaczko
67fd2ce93e
chore: skip TestBackupSettings
2024-03-06 18:05:40 +01:00
Patryk Osmaczko
e9f0d7f597
chore: skip TestMessengerPeersyncingSuite
2024-03-06 18:05:40 +01:00
Alexander
26bc564b38
Peer syncing toggle ( #4758 )
...
* Peer syncing toggle
* bindata.go
2024-03-05 11:44:09 +01:00
Igor Sirotin
c217692c76
chore: improve StoreNodeRequestManager for community custom storenodes ( #4860 )
2024-03-04 20:46:25 +00:00
Igor Sirotin
bdb2b261a6
feature: view only channel reactions ( #4820 )
...
* CommunityMember channel role
* make generate
2024-03-01 17:15:38 +00:00
Mykhailo Prakhov
84713384bb
fix: TestAdminBanMemberWithDeletingAllMessages test fix ( #4855 )
2024-03-01 17:37:20 +01:00
Igor Sirotin
571f30777e
chore: make generate with nix-shell ( #4853 )
2024-03-01 13:58:24 +00:00
Mikhail Rogachev
5d29c20f94
Feat: Add 'IsDisplayNameDupeOfCommunityMember' endpoint ( #4839 )
...
* feat: Add 'TestScanCommunitiesMembersForName' endpoint
* feat: validate display name amoung community members
2024-03-01 15:46:48 +03:00
Sale Djenic
e87e9b6f81
fix: recovering/migrating keypairs fixes
...
- fixed issue with displaying 3 words name on the login screen after recovering from waku
- fixed inability to delete account after recovering from waku
2024-03-01 11:11:16 +01:00
Jonathan Rainville
390d706b3f
fix: fix permission criteria being empty ( #4841 )
...
Fixes https://github.com/status-im/status-desktop/issues/13775
2024-02-29 16:25:34 -05:00
Patryk Osmaczko
ff2eaf58e8
chore: unskip flaky tests
2024-02-29 21:58:36 +01:00
Mykhailo Prakhov
77214dcb5d
feat: admins can delete all members messages during the ban ( #4834 )
2024-02-29 18:54:17 +01:00
Mikhail Rogachev
577db512c6
Feat: add endpoint for getting latest pending CR for a contact ( #4819 )
2024-02-28 23:00:35 +03:00
Igor Sirotin
f0dcc60a17
fix: check nil pointer in saveProfileShowcasePreferencesProto ( #4821 )
2024-02-28 11:36:13 +00:00
Igor Sirotin
168398d7a5
chore: faster TestCommunityOfflineEdit ( #4800 )
...
* chore: faster TestCommunityOfflineEdit
* chore: enable debug logs in TestSyncDeviceSuite
2024-02-27 19:38:40 +00:00
Igor Sirotin
9fa396e797
chore: nix-shell make generate ( #4824 )
2024-02-27 19:35:43 +00:00
Michal Iskierko
df930b1d73
feat: New field in TokenCriteria proto
...
AmountInWei will have a wei-like units.
Amount field becomes deprecated because it kept string with float value.
Comparison (in case of Decimals == 5):
Amount (deprecated) = "1.2"
AmountInWei = "120000"
Issue #11588
2024-02-27 16:25:26 +01:00
Patryk Osmaczko
34fd0e87e4
chore: skip failing tests
2024-02-27 11:00:29 +01:00
Patryk Osmaczko
1f42f2582a
Revert "Comment out all logged flaky tests"
...
This reverts commit 0bd4a06edc
.
2024-02-27 11:00:29 +01:00
Patryk Osmaczko
0a1a66afa7
fix: prevent messenger being started twice
...
Previously, Messenger was `Start`ed multiple times, which resulted in
the shutdown process not being invoked on previously initialized
Messenger's sub-instances. This led to the failure of MVDS instance
shutdown causing massive error logs due to the attempts to read from a
closed database.
2024-02-27 11:00:29 +01:00
Patryk Osmaczko
bafb0a71d0
fix: prevent `panic: send on closed channel`
2024-02-27 11:00:29 +01:00
Patryk Osmaczko
5aed0d178f
chore: unskip flaky tests
2024-02-27 11:00:29 +01:00
Patryk Osmaczko
fcd8e62b40
chore: introduce silent test logger config
2024-02-27 11:00:29 +01:00
Jonathan Rainville
2445cda3e0
fix(contacts): fix blocking a non-contact sends a signal to the other ( #4799 )
...
Fixes https://github.com/status-im/status-desktop/issues/13545
The code is correct in sending an updated CR to make sure the sync doesn't sync back the previous state or at least overrides it.
However, if we never were a contact with the person sending us a CR, and we block them, it sends them a "you got removed" message, which first doesn't make sense but also could let them know they got blocked/ignored.
The trick is just to make sure we added them first. Then dismissing the CR makes sense.
2024-02-26 12:49:04 -05:00
Patryk Osmaczko
eeaff0d3e3
fix: sync&backup channels encryption keys
...
fixes : status-im/status-desktop#13356
2024-02-26 16:41:30 +01:00
Mikhail Rogachev
7cc4c12642
Feat: Add social links to the profile showcase ( #4775 )
...
* feat: add social links to the profile showcase
* fix: deprecate old social links, add synced profile showcase to response
2024-02-26 16:53:40 +03:00
Mykhailo Prakhov
92bc64bb41
feat: kicked/banned member should not have spectated mode after the kick/ban ( #4806 )
2024-02-26 13:33:07 +01:00
frank
4581c4f5f7
fix: sometimes channels do not randomly appear in test community after its creation ( #4669 )
2024-02-23 10:16:51 +08:00
Michał Iskierko
ba7faea027
fix: Use correct chains when checking permissions: mainnet or testnet ( #4793 )
...
Fix #18896
2024-02-22 10:17:35 -05:00
Mykhailo Prakhov
3959948c4c
chore: fix ban/unban flow and delete all messages feature ( #4743 )
...
feat: delete all messages for banned member and ban/unban AC notifications
2024-02-22 11:25:13 +01:00
Mikhail Rogachev
eb5bad4868
Feat: Profile showcase validate collectible ownership ( #4737 )
...
* feat: profile showcase checks then presenting collectibles
* chore: more obvious CollectiblesManager configuration
2024-02-22 11:08:58 +03:00
frank
01b3f8ace4
fix flaky test TestMarkMessagesSeenMarksNotificationsRead ( #4781 )
...
* fix flaky test TestMarkMessagesSeenMarksNotificationsRead
* address review feedback
2024-02-22 09:44:14 +08:00
frank
569a401643
fix flaky test TestBackupSettings ( #4772 )
2024-02-21 10:51:12 +08:00
Patryk Osmaczko
e2cab1a8ae
fix: ensure community events eventual consistency
...
- Extracted `community_events_factory.go`
- Introduced `eventsProcessor`
- Improved processing logic order
- Improved events filtering
- Introduced concept of `EventTypeID` to prevent redundant events handling
- Added sanity check before events appliance when reading community from
database
- Removed reject&re-apply scheme (no more ping-pong issue)
- Fixed and added more variants to eventual consistency test
fixes : status-im/status-desktop#13387
fixes : status-im/status-desktop#13388
2024-02-20 21:07:01 +01:00
Patryk Osmaczko
f7c40d4c40
chore: use lamport timestamp for events clock
...
- make clock logical per event type
- increase clock precision to millisecends
Rationale:
https://www.notion.so/Eventual-consistency-9d6a9c6c55c14ab1aee76f801301522b
iterates: status-im/status-desktop#13387
2024-02-20 21:07:01 +01:00
Pablo Lopez
3f19972c8e
enable custom community storenodes ( #4532 )
...
* enable custom community store nodes
* fix
* fix
* fix
* fix
* cleanup
* fix
* migration
* fix
* cleanup
* fix
* cleanup
* fix
* fix
* cleanup
* message to update the community storenodes
* rename
* fix test
* wait for availability only if global storenode
* fix test
* fix typo
* sync community storenodes
* remove unused
* add tests
* fix imports
* fix todo
* unused
* pr comments
* pr feedback
* revert merge deleted
* fix lint
* fix db and perform ms request
* typo
* fix log
* fix go imports
* refactor handle message
* cleanup public message
* add tests
* fix test
* cleanup test
* fix test
* avoid making one file to big to keep codeclimate from complaining
* fix lint
* revert
* Update protocol/storenodes/database.go
Co-authored-by: richΛrd <info@richardramos.me>
* Update protocol/messenger_mailserver_cycle.go
Co-authored-by: richΛrd <info@richardramos.me>
* PR comment
* fix tx
* proto files
* pr comment
---------
Co-authored-by: richΛrd <info@richardramos.me>
2024-02-20 17:49:39 +02:00
Igor Sirotin
515dbdf2b3
fix: waku connection status subscription lock ( #4762 )
...
* fix: lock waku connStatus subscription for sending
* update skipped tests
2024-02-19 23:44:38 +00:00
Patryk Osmaczko
30f4edf48d
fix: keep flaky tests compilable and easy to find
2024-02-19 21:46:35 +01:00
Patryk Osmaczko
1fca1e1743
Revert "Comment out flaky tests ( #4741 )"
...
This reverts commit 582927868d
.
2024-02-19 21:46:35 +01:00
Cuteivist
a866b8025e
feat: Community token received notification ( #4682 )
2024-02-19 14:55:38 +01:00
Roman Volosovskyi
582927868d
Comment out flaky tests ( #4741 )
2024-02-19 10:10:37 +01:00
Igor Sirotin
85c0e282ae
feature: profile showcase preferences sync&backup ( #4729 )
2024-02-17 18:07:20 +00:00
Igor Sirotin
f0e6fd31de
chore: TestFetchingHistoryWhenOnline ( #4701 )
2024-02-16 18:34:04 +00:00
Igor Sirotin
add46fbda0
chore: `make generate` with nix-shell ( #4745 )
2024-02-16 12:48:27 +00:00
Igor Sirotin
789ee81201
fix: saved addresses sync (`TestSyncDeletesOfSavedAddresses` flaky test) ( #4742 )
2024-02-16 09:45:10 +00:00
Mikhail Rogachev
526e3d74f1
Feat: proof of membership for profile showcase communities ( #4713 )
...
* chore: move profile showcase structures to the indentity package
* feat: implement proof of membership for unecrypted communities
* feat: implement proof of membership for encrypted communties with grants
2024-02-15 22:13:12 +03:00
Andrea Maria Piana
27f0884b51
Exclude watch only accounts from permissions checks
2024-02-14 17:03:28 +00:00
Jonathan Rainville
3a0fe0e62f
fix: fix contact not updating when an ID verif is canceled ( #4719 )
...
Fixes https://github.com/status-im/status-desktop/issues/13412
2024-02-13 14:34:56 -05:00
Sale Djenic
598d58f0d6
fix: a proper clock set when dispatching saved addresses
2024-02-13 17:39:10 +01:00
Jonathan Rainville
2bdc7ec0f4
fix(handler): fix CR received from a removed contact removed ( #4708 )
...
Fixes https://github.com/status-im/status-desktop/issues/13488
The problem was that when you add a contact, it create the chat. Then, if you remove them, it doesn't remove the chat, so `chat.Active` is true.
Now I check in that case if it's a 1x1 chat and if so, if we are contact.
2024-02-13 10:15:42 -05:00
Igor Sirotin
5149976ce0
fix: improve messenger offline detection ( #4703 )
2024-02-13 13:12:59 +00:00
Andrea Maria Piana
598e3217ba
Signal user if the networks are not supported
2024-02-13 12:09:46 +00:00
Igor Sirotin
5e905518aa
fix: missing fields in Communtiy CreateDeepCopy ( #4718 )
2024-02-12 23:26:32 +00:00
Igor Sirotin
432bfeea2f
fix: flaky `MessengerStoreNodeRequestSuite` ( #4721 )
2024-02-12 22:30:19 +00:00
Jonathan Rainville
1c42c07760
feat(discord_import): send signal when the import was cleaned up ( #4693 )
...
This is to let the front end know that the community was deleted so it can also delete it from the UI
2024-02-12 16:04:12 -05:00
Igor Sirotin
44c39d345e
chore: testWakuV2Config ( #4704 )
...
* chore: testWakuV2Config
* renamed to `NewTestWakuV2`
2024-02-12 12:53:15 +00:00
Igor Sirotin
8d4f4904c6
fix: better calculation of from/to mailserver batch parameters ( #4702 )
2024-02-12 12:20:56 +00:00
Andrea Maria Piana
daef5c56e2
Add HighestRole & ordered roles to permission response
...
This commit adds HighestRole & a list of permissions in order of
importance to the CheckPermissionToJoinResponse.
This simplify client code so that it doesn't need to be calculated on
the client.
2024-02-12 12:18:56 +00:00
Mikhail Rogachev
3ea2002904
Feat: Modify grants for profile showcase use ( #4694 )
...
* chore: regenerate proto binaries
* feat: remove unused grant code for community's canPost
2024-02-11 15:11:04 +03:00
osmaczko
ec1238e020
fix: adapt to `response.RequestsToJoinCommunity` interface change ( #4705 )
...
fixes tests build
2024-02-09 18:23:24 +00:00
Michal Iskierko
cc66f43713
fix: fix permissions checker
...
Improve CheckPermissions function.
Check separately member and admin+tokenmaster permissions..
Issue #12884
2024-02-09 19:00:43 +01:00
Patryk Osmaczko
87199a8c99
chore: cover community events eventual consistency with test
...
It proves eventual consistency is broken for contact request events.
iterates: status-im/status-desktop#13387
2024-02-09 16:02:17 +01:00
Patryk Osmaczko
a0e7b1374e
feat: introduce `MessagesOrderController`
...
Enables controlling order of messages in tests. Useful for deterministic
reproduction of out-of-order messages.
Required for: status-im/status-desktop#13387
2024-02-09 16:02:17 +01:00
Patryk Osmaczko
a8b7854ce9
feat: introduce `testWakuWrapper` and `testPublicWakuAPIWrapper`
...
Enables `PublicWakuAPI` introspection.
2024-02-09 16:02:17 +01:00
Patryk Osmaczko
7e8b61f888
feat: introduce `MessagesIterator`
...
Enables customization of iteration strategy for retrieved messages.
2024-02-09 16:02:17 +01:00
Mikhail Rogachev
9b7926b23b
feat: delete profile showcase community entry on community leave or kicked ( #4686 )
2024-02-09 12:37:54 +03:00
Mikhail Rogachev
2350461818
feat: Dispatch profile showcase message on mutual/verified contacts change ( #4678 )
2024-02-09 12:36:54 +03:00
Andrea Maria Piana
c49a0fc314
[ Fixes : #4687 ] Change requestsToJoinCommunity to a map
...
The test was flaky because of re-receiving the message, which resulted
in multiple identical requestsToJoin being added to messengerResponse.
We should in general avoid using arrays in messengerResponse and prefer
maps for exactly this reason.
2024-02-08 11:18:53 +00:00
Icaro Motta
e7e6782241
Fix: linter error
2024-02-07 20:10:49 +00:00
Icaro Motta
31277f1e9e
Fix: cover case where criteria doesn't have token IDs
2024-02-07 20:10:49 +00:00
Icaro Motta
b727f1e14b
Extract entire permissioned balances logic to separate file
2024-02-07 20:10:49 +00:00
Icaro Motta
105703e2eb
Remove zombie code from experiments
2024-02-07 20:10:49 +00:00
Icaro Motta
4f8a66fc07
Create endpoint to get permissioned balances
2024-02-07 20:10:49 +00:00
Jonathan Rainville
18e7b6c331
Fix Discord Import getting stuck ( #4681 )
...
* fix(community_import): fix import getting stuck in case of error in msgs
Fixes #13438 and #13439
* fix(community_import): fixes a bug with the timestamp format
The importer didn't like `-` time zones like `-4`. Using the standard date format makes it work.
2024-02-07 13:02:47 -05:00
Mohsen
70ee70a19a
feat: implement new endpoint to set customization color ( #4568 )
2024-02-07 18:20:54 +03:00
Andrea Maria Piana
605fe40e32
Fix encryption metadata issues #4613
...
This commit fixes a few issues with communities encryption:
Key distribution was disconnected from the community description, this created a case where the key would arrive after the community description and that would result in the client thinking that it was kicked.
To overcome this, we added a message that signals the user that is kicked. Also, we distribute the key with the community description so that there's no more issues with timing.
This is a bit expensive for large communities, and it will require some further optimizations.
Key distribution is now also connected to the request to join response, so there are no timing issues.
Fixes an issue with key distribution (race condition) where the community would be modified before being compared, resulting in a comparison of two identical communities, which would result in no key being distributed. This commit only partially address the issue.
2024-02-07 10:25:41 +00:00
Mikhail Rogachev
47b9978525
Feat: Save and dispatch profile showcase on wallet account change ( #4674 )
...
* Feat: Save and dispatch profile showcase on wallet account change
* Feat: Remove entry and dispatch profile showcase on wallet account removal
2024-02-07 12:30:56 +03:00
Ivan Belyakov
33c46dd59d
fix(protocol): crash in concurrent map write/read
2024-02-05 15:21:44 +01:00
Roman Volosovskyi
2dc1b48968
[ #4671 ] Increase interval between calls to Directory contract ( #4672 )
2024-02-05 14:01:59 +01:00
richΛrd
e9b10c4beb
chore: sync history regardless of connection type ( #4656 )
2024-02-02 13:03:55 -04:00
Roman Volosovskyi
9b10b29da2
[ #4630 ] Add wallet_fetchOrGetCachedWalletBalances method ( #4666 )
2024-02-02 11:42:56 +01:00
Mohsen
9879b1ea77
fix: set display name issue ( #4642 )
2024-02-01 19:13:41 +03:30
Igor Sirotin
0c2a935578
fix: fetch history when back online ( #4651 )
2024-01-30 18:13:18 +00:00
richΛrd
98c1ebec05
fix: handle community shard unassignment and update ( #4627 )
2024-01-30 13:56:59 -04:00
Igor Sirotin
1f0fc2935c
fix: clear waku envelopes cache when deleting a chat ( #4621 )
...
* chore: extract `ErrPermissionToJoinNotSatisfied`
* chore: disable resending messages in communities tests
* chore: move newTestMessenger extraOptions to testMessengerConfig
* chore: `WithTestStoreNode` messenger option
* feat: waku `ClearEnvelopesCache` method
* fix: call `ClearEnvelopesCache` when deleting chat
* chore: `TestBecomeMemberPermissions` checks messages after rejoin
2024-01-30 13:43:34 +00:00
Michal Iskierko
73a5189398
feat(BridgeMessage): Add new type of chat message content: BridgeMessage
...
BridgeMessage is a type of chat message content which will be sent from Matterbridge.
It contains fields:
- bridge name - depends on the used bridge, eg. "discord", "slack", etc...
- user name - username the message was received from
- content - message content
- user avatar
- message id
- parent message id - used in case of replies
Message is saved to a separated table: bridge_messages, similarly to discord messages.
The user_messages table is untouched.
bridge_messages table contains user_messages_id in order to join with user_messages table.
Issue #13098
2024-01-30 12:14:54 +01:00
Patryk Osmaczko
4a7d15b36d
fix: use CommunityShardKey's clock rather than community's clock
2024-01-29 21:31:11 +01:00
Patryk Osmaczko
ac81c15805
fix: ignore outdated COMMUNITY_SHARD_KEY messages
...
This mitigates issue where community shard on client's side was not in
sync with owner's.
relates to: status-im/status-desktop#13217
2024-01-29 18:21:51 +01:00
Patryk Osmaczko
67e18a8ff0
chore: introduce `unhandledMessagesTracker`
2024-01-29 18:21:51 +01:00
Sale Djenic
6403a7413b
feat: new endpoint added which returns accounts of all contacts that match the passed address
2024-01-29 13:15:24 +01:00
Igor Sirotin
ab641c0c78
fix: remove store node envelopes ordering hotfix ( #4622 )
2024-01-27 13:02:12 +00:00
Mikhail Rogachev
fb98ee93ce
Correct profile showcase tokens and collectibles ( #4511 )
...
* feat: add profile showcase collectibles & assets missing fileds
* feat: resolve collectible identification issue
* feat: add validation for collectible visibility relative account
* feat: separate profile showcase assets on verified and unverified tokens
* fix: make chainId uint64, comment collectible account check
* chore: re-generate protobuf binaries with right protoc version
* Update protocol/messenger_profile_showcase.go
Co-authored-by: Igor Sirotin <sirotin@status.im>
2024-01-25 20:48:27 +04:00
frank
bea0b5a63d
fix TestMarkAllActivityCenterNotificationsReadMarksMessagesAsSeen ( #4615 )
2024-01-25 13:56:56 +08:00
Godfrain Jacques
5f6f7e502d
(fix/status-go) fix profile picture update/removal ( #4570 )
...
This PR fixes [9947](status-im/status-desktop#9947 ) and contains :
- Commit to fix the changing of custom picture and having the change
reflected on contact's side
- Commit to fix the deleting of picture and having the change reflected
on contact's side
- Rename confusing `ImageType` to `ImageFormat`
2024-01-24 12:09:28 -08:00
Patryk Osmaczko
1a85a29b1b
chore: cover community sharding with tests
...
closes : #4262
2024-01-24 14:24:57 +01:00
Patryk Osmaczko
5162c285a8
refactor: introduce `newTestCommunitiesMessenger`
2024-01-24 14:24:57 +01:00
Patryk Osmaczko
92f43bac78
chore: extend `CreateWakuV2Network` with `useShardAsDefaultTopic`
2024-01-24 14:24:57 +01:00
Igor Sirotin
2a91fba1fa
chore: added and fixed some logs ( #4577 )
...
* chore: logs for successful storenode request
2024-01-23 18:20:01 +00:00
Andrea Maria Piana
e65760ca85
Add basic peersyncing
...
This commit adds basic syncing capabilities with peers if they are both
online.
It updates the work done on MVDS, but I decided to create the code in
status-go instead, since it's very tight to the application (similarly
the code that was the inspiration for mvds, bramble, is all tight
together at the database level).
I reused parts of the protobufs.
The flow is:
1) An OFFER message is sent periodically with a bunch of message-ids and
group-ids.
2) Anyone can REQUEST some of those messages if not present in their
database.
3) The peer will then send over those messages.
It's disabled by default, but I am planning to add a way to set up the
flags.
2024-01-23 12:46:17 +00:00
Patryk Osmaczko
bf5dcacdeb
refactor: introduce `newTestMessenger`
...
This avoids duplication and enables better configuration possibilities
for clients.
Next step is to cleanup all `newMessenger` derivatives in tests.
2024-01-22 13:08:58 +01:00
Ibrahem Khalil
436d229856
Add last opened at key for community ( #4514 )
2024-01-21 12:55:14 +02:00
frank
81f4c86086
fix: return CustomizationColor only on db rows affected ( #4593 )
2024-01-19 18:26:39 +08:00
Siddarth Kumar
926f6a3c72
Revert "test: bump go-libp2p"
...
This reverts commit d0ca4447c6
.
2024-01-18 20:29:33 +00:00
Dario Gabriel Lipicar
0d2c3cef7c
feat: implement token management settings for collectibles
2024-01-18 11:46:35 -03:00
Richard Ramos
d0ca4447c6
test: bump go-libp2p
2024-01-18 14:28:06 +00:00
frank
ea3e59ffee
replace mention name with public key ( #4579 )
...
* replace mention with public key
* bump version
2024-01-18 21:18:01 +08:00
Roman Volosovskyi
0bd4a06edc
Comment out all logged flaky tests
2024-01-18 06:36:12 +00:00
Roman Volosovskyi
9aef13f83e
[ #4200 ] Enable prevention of tx detection on unrevealed mnemonic/address ( #4444 )
2024-01-16 15:17:02 +01:00
Igor Sirotin
a5acffc001
fix: TestFetchRealCommunity with shards fleet ( #4553 )
...
* fix: TestFetchRealCommunity with shards fleet
* fix: DefaultShardPubsubTopic
* chore: print waku query request id
2024-01-16 13:38:41 +03:00
Mykhailo Prakhov
94bee02ef7
chore: fetch comunity token metadata during handling community description ( #4562 )
2024-01-16 09:08:56 +01:00
Michal Iskierko
3d7ab79d91
fix: execute BeforeDispatch only once
...
Issue #4557
2024-01-15 17:03:33 +01:00
Patryk Osmaczko
3ddec465c5
fix: restore FetchCommunity&TryDatabase fallback to store nodes
...
Add missing check caused by recent `communities.GetByID` refactoring.
2024-01-12 13:15:29 +01:00
Sale Djenic
280f48877d
chore(savedaddresses)!: favourite property removed and primary key updated
...
- favourite column removed from the saved_addresses table
- favourite property removed from the SavedAddress struct
- ens name removed from the primary key, the primary key now is composed of address and is_test columns
- ens parameter removed from wakuext_deleteSavedAddress
- wallet_getSavedAddresses moved to wakuext_getSavedAddresses (to keep them all in a single place)
- saved addresses related endpoints removed from the wallet service, even they logically belong there, a reason for that
is avoiding emitting sync message if one uses calls from the wallet service, while that's not the case in ext service. Once
we refactor this and introduce devices syncing mechanism in the wallet service, we should not only these but other wallet
related endpoints move there (removed: wallet_getSavedAddresses, wallet_addSavedAddress and wallet_deleteSavedAddress).
Affected area:
Saved addresses
2024-01-10 19:30:56 +01:00
Patryk Osmaczko
2a5dc6dec0
chore: remove boilerplate check of `communities.GetByID` clients
...
motivated by:
https://github.com/status-im/status-go/pull/4514#discussion_r1445808116
2024-01-10 18:58:17 +01:00
Dario Gabriel Lipicar
781a2c7c8e
fix: ensure needed community tokens are available in the db
...
Fixes #13171
2024-01-10 12:57:10 -03:00
frank
5cb1972261
chore: return chats after mark all notifications read ( #4432 )
2024-01-10 09:36:33 +08:00
Ibrahem Khalil
e1b52f9eae
Add joined at key to communities ( #4513 )
2024-01-09 20:36:47 +02:00
Dario Gabriel Lipicar
9d9c40b7cf
fix: make fetchCommunity return latest available community
...
Fixes #13145
2024-01-08 18:09:21 -03:00
Patryk Osmaczko
16f11d49df
fix: flaky TestEncryptionDecryption
...
fixes : #4510
2024-01-08 21:18:51 +01:00
Godfrain Jacques
9d8b55e3d9
This PR (status-go) fixes #12821 ( #4516 )
...
- Add album_images column to the user_messages table
- Migrate the database
2024-01-08 10:18:57 -08:00
Igor Sirotin
405d468e0e
fix: force verifiedOwner in `handleSyncInstallationCommunity` ( #4405 ) ( #4538 )
2024-01-08 15:57:57 +00:00
Michal Iskierko
53ac61bb8b
fix: a few adjustments for matterbridge
...
- exposig Online info
- adding ability to disable backup loop and auto message loop
Issue #12710
2024-01-08 14:21:26 +01:00
Mykhailo Prakhov
5c704b2ec2
chore: check and manualy verify community if during the fetchCommunity, community was added to the verification loop ( #4533 )
2024-01-05 18:09:38 +01:00
Cuteivist
7814f39cd7
feat: Add advanced token settings ( #4524 )
2024-01-05 12:12:53 +01:00
Cuteivist
846a4e2363
feat: Community token received notification ( #4515 )
2024-01-04 13:22:06 +01:00
Sale Djenic
a8357dceac
feat: color field added to saved address
...
- `color` column added to `saved_addresses` table
- `colorId` parameter exposed via `SavedAddress` struct
Affected area - saved addresses.
The following endpoints return or receive `SavedAddress` instance:
- `UpsertSavedAddress`
- `GetSavedAddresses`
- `AddSavedAddress`
2023-12-29 10:39:52 +01:00
Igor Sirotin
195982c950
fix_(StoreNodeRequestManager): various fixes and improvements ( #4509 )
2023-12-27 13:53:19 +00:00
Mikhail Rogachev
843bae5659
feat: Return seen/unseen messages count in MessnegerResponse ( #4461 )
2023-12-25 13:25:22 +07:00
Siddarth Kumar
151185c436
chore: log message contents before being sent ( #4494 )
...
When debugging message reliability we often get the number of messages sent and their IDs but we do not know the content of the messages and the type of message sent.
This commit adds debug level logs so that it helps in investigations.
ref : https://github.com/status-im/status-mobile/issues/18031
Closes [#18206 ](https://github.com/status-im/status-mobile/issues/18206 )
2023-12-23 09:42:45 +05:30
Igor Sirotin
a90589f4f7
chore: test filters are in the right place after store node requests ( #4500 )
2023-12-22 19:23:39 +00:00
Patryk Osmaczko
1d3c618fb4
feat: encrypt `CommunityDescription` fields
...
Extended `CommunityDescription` with a `privateData` map. This map
associates each hash ratchet `key_id` and `seq_no` with an encrypted
`CommunityDescription`. Each encrypted instance includes only data
requiring encryption.
closes : status-im/status-desktop#12851
closes : status-im/status-desktop#12852
closes : status-im/status-desktop#12853
2023-12-22 18:17:06 +01:00
Mykhailo Prakhov
9cbfda69da
chore: share shard info independently on waku version ( #4507 )
2023-12-22 17:43:38 +01:00
Mikhail Rogachev
1317f0c796
hotfix: Update profile showcase proto ( #4506 )
2023-12-22 22:43:27 +07:00
Mykhailo Prakhov
134137f9c5
feat: implemented a mechanism to retrieve shard information for a given community ID ( #4499 )
...
* feat: a mechanism to retrieve shard information for a given community ID
2023-12-22 13:37:37 +01:00
Cuteivist
dac7a0daf9
feat: Fetch community data for tokens ( #4497 )
2023-12-22 10:43:19 +01:00
Godfrain Jacques
29ade0f817
fix (@status-go/stickers) Stickers still show in the recent list after being uninstalled ( #4474 )
...
fixes #12677
2023-12-21 10:05:30 -08:00
Mikhail Rogachev
7fc3e4440f
Fix: Don't create extra mutual state messages when accepting the CR again ( #4488 )
...
* Fix: don't create extra system messages when accepting the CR again
* chore: add one more test for cr flows repeated
* chore: use deprecation.AddChatsCount in contact requests tests
2023-12-22 00:38:14 +07:00
Cuteivist
6bfe626558
feat: Use media server for community token images ( #4493 )
2023-12-21 16:05:29 +01:00
Boris Melnik
6d77fb771a
fix(windows-build): Remove free space check for archives ( #4485 )
2023-12-20 21:21:02 +03:00
Igor Sirotin
92f0479a0c
chore: fetch contact with `StoreNodeRequestManager` ( #4484 )
2023-12-20 12:49:12 +00:00
Mykhailo Prakhov
a5f6a6c2f6
fix: privileged member accepted/rejected request to join action is not approved by the control node after the member leaved and tries to join the community again ( #4487 )
2023-12-19 14:45:34 +01:00
Igor Sirotin
0818c98fca
fix_: don't start mailserver cycle when no mailservers set ( #4457 )
2023-12-19 11:58:44 +00:00
Mykhailo Prakhov
45bd8c16da
fix: do not ignore banned list if EventsData is nil ( #4473 )
2023-12-19 12:00:29 +01:00
Andrea Maria Piana
88fd1ce942
Surface acks, offers, requests to messenger
2023-12-18 10:33:05 +00:00
Dario Gabriel Lipicar
b3cc73aa7f
feat: use media server for community collectible images
2023-12-16 08:49:58 -03:00
Igor Sirotin
e3ef8c649a
chore: store node requests manager ( #4446 )
2023-12-15 19:50:12 +00:00
Ibrahem Khalil
90c31afe7c
New way of sharing communities ( #4341 )
2023-12-15 13:55:32 +02:00
Cuteivist
7af313cd53
feat: Add community manager and fetch cached community metadata ( #4450 )
2023-12-14 17:50:46 +01:00
Siddarth Kumar
a6df2be92e
fix crash on x86_64 android emulators ( #4233 )
...
Due to presence of syscall to `epoll_wait` android emulators after Android 10 would crash.
This commit has added `amd64` fallback implementations in 2 spots
- `tcp-shaker` ref : 571aa46f35
- `notify` ref : 0eb36e6c1a
The build flags are updated for fallback implementation to only be used in case of `x86_64` simulators.
status-mobile PR : https://github.com/status-im/status-mobile/pull/17773
2023-12-14 19:02:38 +05:30
Boris Melnik
af9d3bc7b3
fix(history-archive): Skip dowloading data from torrent if free space is not enought ( #4449 )
2023-12-14 12:52:10 +03:00
richΛrd
42cf9fa740
fix: mailserver batches should be grouped by pubsub topics ( #4458 )
2023-12-13 17:14:06 -04:00
Cuteivist
dfe6baed9b
feat: Fetch community token image ( #4440 )
2023-12-12 08:37:57 +01:00
BalogunofAfrica
1b8b53b118
fix: add option to preserve history on chat delete ( #4324 )
2023-12-11 13:29:56 +01:00
Godfrain Jacques
0f98a1294c
feature(@desktop/chat) Enhance message context menu with mark as unread ( #4382 )
...
fixes #10329
linked with PR #12879
- Adds capacity to mark a message as unread
- Adds capacity to mark a message with mention as unread
- Adds persistence to the marking of the message (change can be seen at
after reboot)
- Adds marking in right click contextual menu
2023-12-11 02:17:01 -06:00
Ibrahem Khalil
be8568e174
Community member joins the community if he sends a request to join an… ( #4321 )
2023-12-09 14:46:30 +02:00
Mikhail Rogachev
238a6e2f2d
Fix: Empty community tags in always empty slice, not nil ( #4420 )
2023-12-08 15:13:36 +07:00
Mykhailo Prakhov
fe604b2806
fix: tokenMaster does not have members revealed addresses ( #4425 )
2023-12-07 17:27:14 +01:00
Siddarth Kumar
e0bbb7e2ec
fix: send chats along with response after joining ( #4416 )
...
When an open community was created by Device A and shared with Device B and when Device B would request to join such a community, the general channel would be forever in loading state.
This happened because as part of messenger response the chatId of general channel was not sent and mobile client would not fetch that chat data.
This commit fixes that issue by sending chatId as part of messenger response right after the request to join community succeeds.
2023-12-07 21:32:37 +05:30
Omar Basem
1096b16336
feat: wallet - emoji and color ( #4322 )
...
* feat: init wallet with emoji
2023-12-06 14:47:38 +04:00
Richard Ramos
ee8d8473e2
refactor: it's not necessary for storenodes to be connected peers
2023-12-05 14:20:17 -04:00
Mykhailo Prakhov
04c533b8d5
chore: API for getting all non-approved requests to join for all communities ( #4422 )
2023-12-05 15:50:45 +01:00
frank
d7e7792b51
Fix/duplicate accept cr messages ( #4367 )
...
* fix: Duplicate 'Contact Added' Notifications When Pair-Device User Accepts Request
* bump version
2023-12-05 12:22:20 +08:00
Mykhailo Prakhov
058120fad9
chore: parse all non confirmed requests to join of the community during getting all communities ( #4409 )
2023-12-04 19:20:09 +01:00
Mohsen
76b6745666
fix: 'Join Community' notification is not getting dismissed ( #4267 )
2023-12-04 14:48:28 +03:00
Patryk Osmaczko
9820acd74d
refactor(communities)_: delegate Community creation in Persistence
...
In persistence.go, the lack of sufficient knowledge for constructing
fully initialized Community objects required clients to manually call
`initializeCommunity`. This commit addresses the issue by delegating
Community creation to Manager. It also removes queries and logic
duplication.
2023-12-04 12:41:39 +01:00
Cuteivist
04873ef880
feat: token order API ( #4391 )
2023-12-04 11:18:05 +01:00
Mykhailo Prakhov
b9197510b1
fix: use community controlNode pubkey instead of community ID for verifying the received community data signer ( #4411 )
2023-12-04 10:56:54 +01:00
Andrea Maria Piana
b4b9db8578
Fix panic syncing community token gated
2023-11-30 12:57:38 +00:00
Vitaly Vlasov
384543d3a6
Re-send messages with ResendAutomatically=true
2023-11-30 10:46:38 +02:00
Mikhail Rogachev
317ad2f906
feat: Ignore AC notifications created before the request to join the community ( #4385 )
...
* fix: Ignore AC notifications created before the request to join the community
* review fixes
2023-11-29 19:28:04 +04:00
Andrea Maria Piana
3ab1afaae8
feat_: Allow to set custom nodes & log level
2023-11-29 09:31:02 +00:00
Andrea Maria Piana
f48f9cccc6
feat_: Allow to set light client
2023-11-29 09:31:02 +00:00
Andrea Maria Piana
e1f61515ef
feat_: Add sync chat endpoint
2023-11-29 09:31:02 +00:00
Patryk Osmaczko
4086e24365
fix: close messenger's databases in tests
2023-11-28 20:59:25 +01:00
Dario Gabriel Lipicar
8848943422
feat: obtain rarible api keys
2023-11-27 20:30:18 -03:00
Mikhail Rogachev
31d0782f66
feat: Sync Mentions and Replies AC notifications and messages ( #4337 )
...
* feat: Marking Mentions and Replies AC notifications as read also marks corresponding message as seen
* feat: Marking message as seen marks as read corresponding notification (if there is so)
* chore: make messenger activity center test less flaky
* Update VERSION
2023-11-27 15:22:24 +04:00
Mykhailo Prakhov
19464eb345
feat: show activity center notification if user must reveal addressed to join/rejoin the community ( #4373 )
...
- show activity center notification if user must reveal addressed to join/rejoin the community
- fixed unit test, added validation that ex-owner receive AC notification
2023-11-27 10:54:46 +01:00
Igor Sirotin
e32c5546e1
test: request community from storenode ( #4364 )
...
* feat: request community info from storenode test
* shutdownWaitGroup
* fix requestCommunityInfoFromMailserver timestamp roundin
2023-11-25 23:24:20 +00:00
Patryk Osmaczko
d73d1e2488
chore_: adapt tracking for segmented messages
...
closes : #4310
2023-11-24 17:41:52 +01:00
Patryk Osmaczko
71f2d63a71
refactor_: simplify EnvelopesMonitor
2023-11-24 17:41:52 +01:00
Jonathan Rainville
b7acde0910
fix(message_persistence): set from in quoted message even when deleted ( #4354 )
...
Needed for https://github.com/status-im/status-desktop/issues/12785
2023-11-23 13:07:42 -05:00
Mykhailo Prakhov
5cd20ded4e
chore: fix sending request to join msg's to the new owner ( #4371 )
2023-11-23 16:58:43 +01:00
Richard Ramos
d198ac63fc
fix: find free port for torrent
2023-11-22 16:41:27 -04:00
Dario Gabriel Lipicar
14a8df8948
feat: support alchemy sepolia api keys
2023-11-21 16:20:05 -03:00
Patryk Osmaczko
b9c6f5a834
chore: add integration test for messages tracking
2023-11-21 18:03:06 +01:00
Patryk Osmaczko
bddc48f265
fix: allocate space for hashes instead of creation
...
Otherwise hashes would be twice in size and messages tracking
wouldn't work.
2023-11-20 21:26:19 +01:00
Richard Ramos
c012f94681
fix: send request on non protected topics, and add missing shard information on invite
2023-11-18 12:12:06 -04:00
Patryk Osmaczko
4a9220bf96
refactor: eliminate datasync initialization logic duplication
2023-11-18 15:37:54 +01:00
Patryk Osmaczko
7b3013a010
chore: remove message chunking from datasync
...
It was redundant to recently introduced messages segmentation layer.
2023-11-18 15:37:54 +01:00
Vitaly Vlasov
1794b93c16
Always set PubsubTopic in filters
2023-11-18 02:26:34 +02:00
Richard Ramos
28160fe4f7
fix: memory aliasing in loop
2023-11-17 13:37:41 -04:00
Dario Gabriel Lipicar
e17d4606b1
fix: implement cancellable collectibles requests
2023-11-17 10:35:30 -03:00
Igor Sirotin
2fef9a8f8f
feat: new `GetTextURLsToUnfurl` endpoint which extends GetURLs ( #4294 )
2023-11-17 13:32:37 +00:00
Boris Melnik
4ae9c02e57
fix(discord): Handle multiple channels with the same name ( #4313 )
2023-11-17 16:18:18 +03:00
Patryk Osmaczko
2c55b9c676
feat: cache curated communities in db
...
closes : status-im/status-desktop#12277
2023-11-16 17:21:28 +01:00
Patryk Osmaczko
5b51c32a4a
refactor: extract messenger_curated_communities.go
2023-11-16 17:21:28 +01:00
Patryk Osmaczko
dd5e45d81c
chore: delay message segments cleanup loop execution
2023-11-16 10:54:00 +01:00
Patryk Osmaczko
d04f99d56d
chore: cleanup message segments
...
closes : #4297
2023-11-15 16:52:35 +01:00
Igor Sirotin
010afb4b39
fix: self-contact related flaky tests ( #4312 )
2023-11-13 20:07:35 +00:00
Jonathan Rainville
2076853ce3
fix(profile_showcase): fix crash when profile showcase message is nil ( #4296 ) ( #4311 )
...
Partly fixes https://github.com/status-im/status-desktop/issues/12695
2023-11-13 12:35:41 -05:00
Patryk Osmaczko
de29ec71ae
feat: enable messages segmentation
...
closes : status-im/status-desktop#12188
2023-11-13 17:32:00 +01:00
Patryk Osmaczko
6bb806caad
feat: introduce messages segmentation
2023-11-13 17:32:00 +01:00
Patryk Osmaczko
fa44e03ac2
refactor: eliminate logic duplication in MessageSender.HandleMessages
2023-11-13 17:32:00 +01:00
Igor Sirotin
ab6cb85690
fix(messenger_base_test): remove messenger `Start` duplication ( #4305 )
2023-11-13 15:53:51 +00:00
Boris Melnik
44625a2904
chore(discord): Move import from discord functionality to separatefile ( #4278 )
2023-11-13 13:29:31 +03:00
Igor Sirotin
a178d724b1
fix: correct parsing shared url without data ( #4283 )
2023-11-10 16:33:37 +00:00
Igor Sirotin
b36d95d84d
fix: better `IsStatusSharedURL` ( #4280 )
...
* fix: better `IsStatusSharedURL`
* refactor `ParseSharedURL`
2023-11-10 15:00:03 +00:00
Igor Sirotin
c3687acc84
feat: limit unfurls number ( #4288 )
2023-11-10 10:32:58 +00:00
richΛrd
2c954d42cf
feat: replace DefaultPubsubTopic by Shard 32 ( #4161 )
2023-11-09 20:29:15 -04:00
Mikhail Rogachev
03c32f620f
feat: Profile showcase data sharing ( #4209 )
...
* feat: Add profile showcase messaging part with ecrypted data
* feat: Separate profile showcase categories to provide ablity to store custom data
* fix: review fixes
* feat: move profile showcase out of contact data
* fix: create index on contact id for profile tables
* chore: remove logger from link preview
2023-11-09 22:59:01 +04:00
Igor Sirotin
f8236fb555
fix: link previews public keys ( #4272 )
2023-11-09 16:24:35 +00:00
Patryk Osmaczko
f7042e4b9e
refactor: extract layers in StatusMessage
...
Extracted:
- TransportLayer
- EncryptionLayer
- ApplicationLayer
2023-11-08 21:46:22 +01:00
Igor Sirotin
eab6118f12
fix: edit message even if converting link previews to proto
2023-11-08 18:44:52 +00:00
Volodymyr Kozieiev
b5c82adb70
Increased timeouts when fetching curated communities ( #4244 )
...
* Timeouts increased
2023-11-08 13:06:40 +00:00
Michal Iskierko
d909faf504
feat: add AC messages for setting signer operations
...
Issue #11964
2023-11-08 12:54:29 +01:00
Michal Iskierko
02e4cc6e1f
feat: Send envelopes to telemetry service
...
Issue #12430
2023-11-08 11:34:10 +01:00
Mykhailo Prakhov
b15fa6d2c8
fix: promote self to community control node event if we are not a community member ( #4270 )
2023-11-07 14:18:59 +01:00
Boris Melnik
1d08b403e6
feat(discord): Split import channel signals and community import signals ( #4232 )
2023-11-07 13:44:10 +03:00
Patryk Osmaczko
4fddcb54ff
refactor: extract Community.ChatID
2023-11-04 00:11:40 +01:00
Patryk Osmaczko
667e427b63
refactor: base community key actions evaluation on Encrypted() property
2023-11-04 00:11:40 +01:00
Patryk Osmaczko
953ed4c8e4
chore: update directory abi and addresses
...
closes : status-im/status-desktop#12569
2023-11-03 17:56:21 +01:00
Andrea Maria Piana
071c431606
[ Fixes : #4088 ] Fix pending notification test
...
There were 2 issues:
1) We hard delete requests, that means that on retransmission they will
be recreated, the test has been changed to accommodate this behavior
2) We always used time.now when updating timestamp in notification,
sometimes time is the same so the notification is not updated, we
changed to use what essentially is a clock value
2023-11-03 14:12:35 +00:00
frank
f36b943202
fix flaky test `TestSyncCommunityRequestDecisionAccept` ( #4257 )
2023-11-03 18:55:44 +08:00
Andrea Maria Piana
c76ca62375
Fix keycard test
2023-11-03 10:43:59 +00:00
Igor Sirotin
c27384680a
feat: new configurable endpoint RequestCommunityInfoFromMailserverV2 ( #4238 )
...
* StatusUnfurler: use shard from url
2023-11-03 10:30:24 +00:00
Patryk Osmaczko
25f25e9853
chore: populate Community with PubsubTopicPrivateKey
...
part of: status-im/status-desktop#12408
2023-11-03 11:27:43 +01:00
Sale Djenic
11a3612290
feat: support signing of a join/edit community request from within the app or keycard
2023-11-03 07:49:01 +01:00
frank
054356fed2
remove sync AC state ( #4241 )
2023-11-02 23:07:03 +08:00
yqrashawn
b65eda3f42
feat: new deeplink status-im->status-app ( #4198 )
2023-11-02 13:56:06 +08:00
Andrea Maria Piana
d3558d8e09
Disable waku test
2023-11-01 19:27:53 +00:00
Andrea Maria Piana
fd76367be7
[ Fixes : #4206 ] Don't remove filters if not needed
...
Filters were removed and recreated which resulted in a flaky test.
This was not needed as the filters didn't change, and they won't be
recreated if we reinstall the same filter.
2023-11-01 12:47:35 +00:00
Mykhailo Prakhov
eb437e9d8d
feat: kick all members after ownership change and auto-accept after sharing the address ( #4187 )
...
feat: kick all members after the ownership change and auto-accept after sharing the address
2023-10-31 15:20:40 +01:00
Patryk Osmaczko
e3a8f5630a
chore: add `CommunityID` to `ProtectedTopic`
2023-10-31 10:03:31 +01:00
Patryk Osmaczko
627ac9449b
refactor: remove always nil `shard` parameter in `HandleCommunityDescriptionMessage`
2023-10-31 10:03:31 +01:00
Richard Ramos
c1a6771977
fix: non protected pubsub topic for communities
2023-10-30 15:47:32 -04:00
Andrea Maria Piana
85f8c92cde
Delete processed messages & add tests
...
This commit adds a test for out of order messages, which were only
implicitly tested.
It also deletes them after being processed, otherwise they would be
reproceessed each time a message was sent
2023-10-30 14:11:29 +00:00
Andrea Maria Piana
d47b5733c0
fix order of drop statement
2023-10-30 10:56:32 +00:00
Andrea Maria Piana
360c2d50d4
Fix issues with out of order encryption and batched messages
...
This commit fixes 3 issues:
1) In some cases, the hash ratchet was not correctly found
2) Out of order messages were not processed correctly as the wrong error
was returned
3) Batched non datasync messages were not processed correctly
Fixes : #4170
2023-10-30 10:11:32 +00:00
Jonathan Rainville
0cac2af1db
fix(community): getting kicked out of a community should still spectate ( #4217 )
...
Fixes https://github.com/status-im/status-desktop/issues/12558
When getting kicked out of a community, before we used to leave the community completely, but just keep the filters on.
That created a problem when reopening the app, because the community disappeared and could even create a problem in desktop where it tried to open the last opened community but it's no longer there.
The fix now is that when getting kicked out, we instead just remove ourselves from the community and set Joined to false, but we keep the community spectated.
2023-10-27 15:20:08 -04:00
Patryk Osmaczko
e304fe3344
chore: enable community rekey loop
2023-10-27 16:29:26 +02:00
Igor Sirotin
a6d46756f5
fix(ImageUnfurler): set title for image links ( #4215 )
2023-10-26 17:52:52 +01:00
Teodor M. Ionita
4744ee899e
Add TestPinMessageInCommunityChat, adjust pin permissions
...
Also check pin post permission a bit earlier for the sender, with
canPost() in sendPinMessage(), even though there is a later check down
the line in dispatchMessage().
Fixes #4138
2023-10-26 13:22:32 +03:00
frank
06a9fe4f81
fix: sync decision on join community request ( #4190 )
...
* fix: sync community request decision
* make generate
* simplify test
* make generate
2023-10-26 12:17:18 +08:00
Mohsen
27b770c41b
fix: publish group member info ( #4184 )
2023-10-25 21:11:04 +03:00
Patryk Osmaczko
445135eb94
fix: ensure receivedMessage.CommunityID in chat message handler is set
...
This enables clients to obtain invitation's community ID even when
description processing is queued.
part of: status-im/status-desktop#12481
2023-10-25 20:10:01 +02:00
Jonathan Rainville
6e0d4e697f
chore(messenger_communities): use new name for community Access ( #4210 )
2023-10-25 13:33:49 -04:00
Cuteivist
debf3b6e4d
feat: Added ERC20 community id ( #4189 )
2023-10-25 18:49:18 +02:00
Boris Melnik
8ae6e3035b
feat(discord): Import single channel from discord ( #4160 )
2023-10-25 12:32:21 -04:00
Patryk Osmaczko
3452eb72a8
refactor: remove community invitation only access
2023-10-25 17:34:37 +02:00
Patryk Osmaczko
b262d7e88c
refactor: rename Community.OnRequest() -> AutoAccept()
2023-10-25 17:34:37 +02:00
Patryk Osmaczko
b321f28c9d
refactor: update community access enum naming
2023-10-25 17:34:37 +02:00
Shinnok
3805662a18
fix(messenger_communities): block messages and reactions to token gated or spectated communities ( #4064 )
...
Which specifies that if a user is not a community member & a
chat member, he can't post, react or pin messages in that chat.
Notes:
- also fix&cleanup associated failing tests.
- refactor Community.CanPost() to reflect the new requirement.
- grant code is not fully implemented and is to be removed later.
Fixes https://github.com/status-im/status-desktop/issues/11915
2023-10-25 10:26:18 -04:00
Igor Sirotin
c6ff315dfc
fix: set pubsubTopic in request community info from mailserver ( #4194 )
2023-10-25 11:13:35 +01:00
Andrea Maria Piana
23f71c1125
Fix encryption id && rekey with a single message
...
This commit changes the format of the encryption id to be based off 3
things:
1) The group id
2) The timestamp
3) The actual key
Previously this was solely based on the timestamp and the group id, but
this might lead to conflicts. Moreover the format of the key was an
uint32 and so it would wrap periodically.
The migration is a bit tricky, so first we cleared the cache of keys,
that's easier than migrating, and second we set the new field hash_id to
the concatenation of group_id / key_id.
This might lead on some duplication in case keys are re-received, but it
should not have an impact on the correctness of the code.
I have added 2 tests covering compatibility between old/new clients, as
this should not be a breaking change.
It also adds a new message to rekey in a single go, instead of having to
send multiple messages
2023-10-24 20:48:54 +01:00
Mikhail Rogachev
1be356af93
feat: Profile showcase backend ( #4005 )
...
* feat: profile showcase preferences basic impl
(squashed)
* feat: save preferences in batch for profile showcase
* chore: add validation for profile showcase settings request
and fix migration order
2023-10-24 14:43:18 +04:00
Igor Sirotin
e83be20def
fix: shared links and link previews contain full self information ( #4169 )
...
* fix(StatusUnfurler): allow contact without icon
2023-10-24 11:15:32 +01:00
frank
311e463eed
make lint-fix ignore for messenger_handlers.go ( #4181 )
...
* make lint-fix ignore messenger_handlers.go
* make lint-fix
2023-10-24 11:42:56 +08:00
Patryk Osmaczko
dc6fe5613a
fix: decouple permissions reevaluation from torrent client readiness
2023-10-22 21:50:41 +02:00
Patryk Osmaczko
bd245ab45b
refactor: unify `Owned()` and `ControlledCommunities()`
2023-10-22 21:50:41 +02:00
Patryk Osmaczko
345851c396
feat: ensure unique control node across devices
...
closes : status-im/status-desktop#11962
2023-10-22 21:50:41 +02:00
frank
624996a7e9
only sync decisions/state of AC notifications ( #3979 )
2023-10-22 17:41:20 +08:00
Patryk Osmaczko
eb232d4680
fix: use `messengerSignalsHandler` instead of global object
2023-10-20 18:09:12 +02:00