status-go/protocol/communities
Jonathan Rainville d942ad1a1f
fix(manager)_: make sure createCommunityPermission schedules the reeval (#5404)
Fixes https://github.com/status-im/status-desktop/issues/15175

The problem was that we used StartMembersReevaluaitonLoop in createCommunityPermission, in case the loop was never started. Indeed it worked if it was the first ever permission, because the loop would then start and members would be re-evaluated.

However, if the loop was already started, in the case where there were previous permissions, the call would just early exit, because it was already started.

The solution here is to use `ScheduleMembersReevaluaiton` like other permission functions use. To make sure a first permission still works, we call startLoop in schedule if the task doesn't exist.
2024-06-25 14:46:29 -04:00
..
migrations
token feat_: recovery retracking pending transsactions 2024-05-28 13:06:24 +02:00
adaptors.go fix(communities)_: ensure community sync doesn't override joined state 2024-06-20 15:37:20 +02:00
check_permissions_response.go fix_: filter private permissions & add Id keys in check_permissions_response (#5059) 2024-04-19 09:23:54 -07:00
check_permissions_response_test.go feat: add permissions reevaluation request 2024-03-12 14:15:01 +01:00
community.go feat(community)_: Move images from community data to MediaServer (#5336) 2024-06-24 17:37:44 +08: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 feat_: delete or update permission when deleting a channel (#5297) 2024-06-07 18:30:01 +02:00
community_description_encryption.go fix: encrypt community's Categories and ActiveMembersCount 2024-03-20 18:41:07 -04:00
community_description_encryption_test.go fix(communities)_: ensure read-only channels are not encrypted 2024-05-16 11:21:55 +02: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 fix(communities)_: ensure read-only channels are not encrypted 2024-05-16 11:21:55 +02:00
community_event.go feat: admins can delete all members messages during the ban (#4834) 2024-02-29 18:54:17 +01:00
community_event_message.go fix: ensure community events eventual consistency 2024-02-20 21:07:01 +01:00
community_events_factory.go feat: admins can delete all members messages during the ban (#4834) 2024-02-29 18:54:17 +01:00
community_events_processing.go fix: validate community events read from database 2024-03-27 14:31:03 +01:00
community_events_processing_test.go fix: ensure community events eventual consistency 2024-02-20 21:07:01 +01:00
community_test.go chore(communities)_: reject outdated community descriptions 2024-06-11 08:49:07 +02:00
community_token_permission.go feat_: delete or update permission when deleting a channel (#5297) 2024-06-07 18:30:01 +02:00
communnity_privileged_member_sync_msg.go feat: add contact customization color (#4869) 2024-04-03 22:49:57 +08:00
errors.go chore(communities)_: reject outdated community descriptions 2024-06-11 08:49:07 +02:00
manager.go fix(manager)_: make sure createCommunityPermission schedules the reeval (#5404) 2024-06-25 14:46:29 -04:00
manager_archive.go chore(no-torrent)_: Refactored NewArchiveManager to use config pattern 2024-06-07 13:44:12 +01:00
manager_archive_file.go chore(no-torrent)_: Refactored NewArchiveManager to use config pattern 2024-06-07 13:44:12 +01:00
manager_archive_file_nop.go chore(no-torrent)_: Renamed archive files to archive_file 2024-06-07 13:44:12 +01:00
manager_archive_nop.go chore(no-torrent)_: Refactored NewArchiveManager to use config pattern 2024-06-07 13:44:12 +01:00
manager_test.go fix(communities)_: correct >1 NFT token requirement evaluation 2024-06-20 15:23:38 +02:00
permission_checker.go fix(communities)_: correct >1 NFT token requirement evaluation 2024-06-20 15:23:38 +02:00
permission_checker_test.go fix(communities)_: correct >1 NFT token requirement evaluation 2024-06-20 15:23:38 +02:00
permissioned_balances.go Fix: cover case where criteria doesn't have token IDs 2024-02-07 20:10:49 +00:00
permissioned_balances_test.go feat: New field in TokenCriteria proto 2024-02-27 16:25:26 +01:00
persistence.go fix(community)_: handle outdated request to join and request to join response when we have been joined (#5271) 2024-05-31 19:16:45 +02:00
persistence_mapping.go Add last opened at key for community (#4514) 2024-01-21 12:55:14 +02:00
persistence_test.go feat_: recovery retracking pending transsactions 2024-05-28 13:06:24 +02: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: add contact customization color (#4869) 2024-04-03 22:49:57 +08:00
request_to_join_test.go
request_to_leave.go
roles_authorization.go feat: admins can delete all members messages during the ban (#4834) 2024-02-29 18:54:17 +01:00
utils.go chore(community)_: reevaluateMembers optimization (#5169) 2024-05-17 18:15:39 +02:00
validator.go