status-go/protocol
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
..
anonmetrics
audio
common
communities
datasync
discord
encryption
ens
identity
internal/sqlite
migrations
peersyncing
protobuf fix_: send request for shared addresses when restoring a community (#5314) 2024-06-14 13:32:55 -04:00
pushnotificationclient
pushnotificationserver feat_: implement connector service (#5375) (#5403) 2024-06-24 07:29:40 -07:00
requests feat_: added Login request BandwidthStatsEnabled flag (#5369) 2024-06-18 14:36:53 +01:00
sqlite
storenodes
subscription
transport
tt
urls
v1
verification
wakusync
zaputil
LICENSE
README.md
activity_center.go
activity_center_persistence.go
activity_center_persistence_test.go
chat.go
chat_group_proxy.go
chat_test.go
communities_events_eventual_consistency_test.go
communities_events_owner_without_community_key_test.go
communities_events_token_master_test.go
communities_events_utils_test.go fix(communities)_: ensure community sync doesn't override joined state 2024-06-20 15:37:20 +02:00
communities_key_distributor.go
communities_messenger_admin_test.go
communities_messenger_helpers_test.go
communities_messenger_signers_test.go
communities_messenger_test.go
communities_messenger_token_permissions_test.go
contact.go
contact_test.go Compute emojiHash on-the-fly 2023-03-06 13:22:40 +02:00
delete_message.go
edit_message.go
emoji_reaction.go
errors.go
group_chat_invitation.go
group_chat_system_messages.go
identity_images.go
linkpreview_unfurler.go feature: Unfurl status links (#4033) 2023-10-13 13:25:34 +01:00
linkpreview_unfurler_image.go
linkpreview_unfurler_oembed.go feature: Unfurl status links (#4033) 2023-10-13 13:25:34 +01:00
linkpreview_unfurler_opengraph.go
linkpreview_unfurler_status.go
local_notifications.go
message_builder.go
message_persistence.go
message_validator.go
message_validator_test.go
messages_iterator.go
messenger.go
messenger_activity_center.go feat_: retry sending specific messages 2024-05-02 05:40:49 +08:00
messenger_activity_center_test.go
messenger_auto_message.go
messenger_backup.go
messenger_backup_handler.go
messenger_backup_test.go
messenger_base_test.go fix: clear waku envelopes cache when deleting a chat (#4621) 2024-01-30 13:43:34 +00:00
messenger_bookmarks.go Sync all devices after initial pairing (#3047) 2023-01-06 20:21:14 +08:00
messenger_bridge_message_test.go
messenger_browsers.go Issue 13813 -- Use messenger ns for browser CRUD (#2801) 2022-08-24 16:05:35 +02:00
messenger_browsers_test.go fix: close messenger's databases in tests 2023-11-28 20:59:25 +01:00
messenger_builder_test.go
messenger_chat_context_test.go
messenger_chats.go
messenger_collapsed_community_categories.go
messenger_collapsed_community_categories_test.go
messenger_communities.go
messenger_communities_import_discord.go
messenger_communities_sharding_test.go
messenger_community_for_mobile_testing.go
messenger_community_for_mobile_testing_test.go
messenger_community_metrics.go
messenger_community_metrics_test.go
messenger_community_shard.go
messenger_community_storenodes.go
messenger_config.go feat_: Move community tokens transaction listening to status-go 2024-05-16 16:18:15 +02:00
messenger_config_test.go
messenger_contact_requests_test.go
messenger_contact_update_test.go
messenger_contact_verification.go
messenger_contact_verification_test.go fix_: Add contact to removeTrustStatus response (#5058) 2024-04-18 19:28:44 +04:00
messenger_contacts.go
messenger_contacts_test.go
messenger_curated_communities.go
messenger_delete_message_for_everyone_test.go
messenger_delete_message_for_me_test.go Revert "Comment out all logged flaky tests" 2024-02-27 11:00:29 +01:00
messenger_delete_messages_test.go
messenger_discv5.go
messenger_edit_message_test.go
messenger_emoji_reactions.go
messenger_emoji_test.go
messenger_ens.go
messenger_group_chat.go feat_: retry sending specific messages 2024-05-02 05:40:49 +08:00
messenger_group_chat_test.go feat: add contact customization color (#4869) 2024-04-03 22:49:57 +08:00
messenger_handler.go
messenger_handler_test.go
messenger_handlers.go
messenger_identity.go
messenger_identity_display_name_test.go
messenger_identity_image_test.go
messenger_installations_test.go
messenger_keycard.go
messenger_linkpreview.go
messenger_linkpreview_test.go
messenger_mailserver.go
messenger_mailserver_cycle.go
messenger_mailserver_processMailserverBatch_test.go
messenger_maps.go
messenger_mention.go [mention] fix relate issues to input segments (#3766) 2023-07-25 16:47:24 +08:00
messenger_mention_test.go
messenger_messages.go
messenger_messages_order_controller_test.go
messenger_messages_tracking_test.go
messenger_mute_test.go
messenger_offline_test.go chore: faster TestCommunityOfflineEdit (#4800) 2024-02-27 19:38:40 +00:00
messenger_peers.go
messenger_peersyncing.go
messenger_peersyncing_test.go
messenger_pin_message_test.go
messenger_pin_messages.go bug_: fix resend type for private group messages (#5258) 2024-05-30 14:18:54 +02:00
messenger_profile_showcase.go
messenger_profile_showcase_proto_conversions.go
messenger_profile_showcase_test.go chore(communities)_: cover ERC721 based permissions reevaluation with tests 2024-06-07 23:46:20 +02:00
messenger_raw_message_resend.go
messenger_remove_message_test.go feat: get and delete community member messages API (#4932) 2024-03-19 20:44:49 +01:00
messenger_reply_test.go
messenger_response.go chore(identity)_: remove old social links implementation (#5214) 2024-05-24 10:35:34 +02:00
messenger_response_test.go
messenger_saved_address.go
messenger_send_images_album_test.go
messenger_settings.go
messenger_settings_test.go
messenger_share_image_test.go
messenger_share_urls.go
messenger_share_urls_test.go
messenger_status_updates.go feat_: retry sending specific messages 2024-05-02 05:40:49 +08:00
messenger_status_updates_test.go
messenger_store_node_request_manager.go
messenger_store_node_request_manager_config.go
messenger_storenode_comunity_test.go
messenger_storenode_request_test.go
messenger_switcher_cards.go Persist switcher cards (#3049) 2023-01-05 21:41:57 +05:30
messenger_sync_activity_center_test.go
messenger_sync_bookmark_test.go
messenger_sync_chat_test.go
messenger_sync_clear_history_test.go
messenger_sync_contact_request_decision_test.go
messenger_sync_customization_color_test.go
messenger_sync_keycard_change_test.go
messenger_sync_keycards_state_test.go
messenger_sync_profile_picture_test.go Use base test messenger suite 2023-07-13 14:01:55 +01:00
messenger_sync_raw_messages.go fix(communities)_: ensure community sync doesn't override joined state 2024-06-20 15:37:20 +02:00
messenger_sync_saved_addresses_test.go
messenger_sync_settings.go
messenger_sync_settings_test.go
messenger_sync_verification_test.go
messenger_sync_wallets_test.go Revert "Comment out all logged flaky tests" 2024-02-27 11:00:29 +01:00
messenger_test.go
messenger_testing_utils.go fix: archive decryption fail (#5076) 2024-05-27 13:49:09 +01:00
messenger_unread_test.go
messenger_validate_requests_test.go
messenger_waku_wrapper_test.go
messenger_wallet.go feat_: retry sending specific messages 2024-05-02 05:40:49 +08:00
messenger_walletconnect.go Implement wallet connect session CRUD API 2022-08-19 12:32:00 +01:00
messenger_walletconnect_test.go
node_config_persistence_test.go
persistence.go
persistence_collapsed_community_categories.go
persistence_metrics.go
persistence_profile_showcase.go
persistence_profile_showcase_test.go Feat: Simplify profile showcase preferences (#4854) 2024-03-08 17:20:23 +01:00
persistence_quoted_message_test.go
persistence_test.go
push_notification_test.go
status_update.go
switcher_card.go
transaction_validator.go
transaction_validator_test.go Move message to common namespace 2020-09-09 21:22:12 +02:00
waku_builder_test.go

README.md

status-go/protocol

This is an implementation of the secure transport and payloads which are a part of the Status Client specification.

This implementation uses SQLite and SQLCipher for persistent storage.

The payloads are encoded using protocol-buffers.

Content

  • messenger.go is the main file which exports Messenger struct. This is a public API to interact with this implementation of the Status Chat Protocol.
  • protobuf/ contains protobuf files implementing payloads described in the Payloads spec.
  • encryption/ implements the Secure Transport spec.
  • transport/ connects the Status Chat Protocol with a wire-protocol which in our case is either Whisper or Waku.
  • datasync/ is an adapter for MVDS.
  • applicationmetadata/ is an outer layer wrapping a payload with an app-specific metadata like a signature.
  • identity/ implements details related to creating a three-word name and identicon.
  • migrations/ contains implementation specific migrations for the sqlite database which is used by Messenger as a persistent data store.

History

Originally this package was a dedicated repo called status-protocol-go and was migrated into status-go. The new status-go/protocol package maintained its own dependencies until sub modules were removed and the root go.mod file managed all dependencies for the entire status-go repo.