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