status-go/protocol/communities
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
..
migrations
token feat: share requests to join and revealed addresses with privileged roles (#3951) 2023-09-20 10:37:46 +02:00
adaptors.go Add last opened at key for community (#4514) 2024-01-21 12:55:14 +02:00
community.go Fix encryption metadata issues #4613 2024-02-07 10:25:41 +00:00
community_categories.go refactor: simplify events creation logic 2023-08-17 08:24:51 +02:00
community_categories_test.go refactor: update community access enum naming 2023-10-25 17:34:37 +02:00
community_changes.go fix(community): getting kicked out of a community should still spectate (#4217) 2023-10-27 15:20:08 -04:00
community_description_encryption.go Fix encryption metadata issues #4613 2024-02-07 10:25:41 +00:00
community_description_encryption_test.go Fix encryption metadata issues #4613 2024-02-07 10:25:41 +00:00
community_encryption_key_action.go Fix encryption metadata issues #4613 2024-02-07 10:25:41 +00:00
community_encryption_key_action_test.go feat: encrypt `CommunityDescription` fields 2023-12-22 18:17:06 +01:00
community_event.go Fix encryption metadata issues #4613 2024-02-07 10:25:41 +00:00
community_event_message.go Always use protobufs by reference & generate handlers 2023-08-22 12:08:54 +01:00
community_test.go feat: encrypt `CommunityDescription` fields 2023-12-22 18:17:06 +01:00
community_token_permission.go feat: add pending state for token permissions 2023-08-23 10:34:59 +02:00
communnity_privileged_member_sync_msg.go fix: tokenMaster does not have members revealed addresses (#4425) 2023-12-07 17:27:14 +01:00
errors.go fix: clear waku envelopes cache when deleting a chat (#4621) 2024-01-30 13:43:34 +00:00
manager.go Fix encryption metadata issues #4613 2024-02-07 10:25:41 +00:00
manager_test.go feat: encrypt `CommunityDescription` fields 2023-12-22 18:17:06 +01:00
permission_checker.go fix: implement cancellable collectibles requests 2023-11-17 10:35:30 -03:00
persistence.go Add last opened at key for community (#4514) 2024-01-21 12:55:14 +02:00
persistence_mapping.go Add last opened at key for community (#4514) 2024-01-21 12:55:14 +02:00
persistence_test.go 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
persistence_test_helpers.go Add last opened at key for community (#4514) 2024-01-21 12:55:14 +02:00
request_to_join.go feat: kick all members after ownership change and auto-accept after sharing the address (#4187) 2023-10-31 15:20:40 +01:00
request_to_join_test.go
request_to_leave.go
roles_authorization.go feat: Introduce KickedPending and BannedPending states (#3948) 2023-10-04 23:47:22 +03:00
utils.go feat: add pending state for token permissions 2023-08-23 10:34:59 +02:00
validator.go