status-go/protocol/communities
Alex Jbanca e8c4b7647f
chore(upgradeSQLCipher): Upgrading SQLCipher to version 5.4.5 (#3559)
* chore(upgradeSQLCipher): Upgrading SQLCipher to version 5.4.5

Changes:
### github.com/mutecomm/go-sqlcipher
1. The improved crypto argorighms from go-sqlcipher v3 are merged in v4
	Tags:
	v4.4.2-status.1 - merge `burn_stack` improvement
	v4.4.2-status.2 - merge `SHA1` improvement
	v4.4.2-status.4- merge 'AES' improvement
2. Fixed `go-sqlcipher` to support v3 database in compatibility mode (`sqlcipher` already supports this) (Tag: v4.4.2-status.3)
3. Upgrade `sqlcipher` to v5.4.5 (Tag: v4.5.4-status.1)

### github.com/status-im/migrate/v4
1. Upgrade `go-sqlcipher` version in `github.com/status-im/migrate/v4`

### status-go
1. Upgrade `go-sqlcipher` and `migrate` modules in status-go
2. Configure the DB connections to open the DB in v3 compatibility mode

* chore(upgradeSQLCipher): Use sqlcipher v3 configuration to encrypt a plain text database

* chore(upgradeSQLCipher): Scanning NULL BLOB value should return nil

Fixing failing tests: TestSyncDeviceSuite/TestPairingSyncDeviceClientAsReceiver;  TestSyncDeviceSuite/TestPairingSyncDeviceClientAsSender

Considering the following configuration:
1. Table with BLOB column has 1 NULL value
2. Query the value
3. Rows.Scan(&dest sql.NullString)

Expected: dest.Valid == false; dest.String == nil
Actual: dest.Valid == true; dest.String == ""

* chore: Bump go-sqlcipher version to include NULL BLOB fix
2023-06-07 08:58:01 +03:00
..
migrations Handle organisation membership requests 2020-12-23 17:20:55 +01:00
adaptors.go feat: sync `CommunitySettings` across paired devices 2022-06-16 12:45:05 +02:00
community.go Community encryption should automatically be enabled/disabled depending on community permissions (closed/open) 2023-05-05 17:32:39 +02:00
community_categories.go Upgrade linter to 1.50.0 2023-01-13 17:52:03 +00:00
community_categories_test.go Validate no duplicated community chat names 2021-06-03 13:27:49 +02:00
community_test.go fix: remove ourselves from members when leaving community 2022-09-21 08:35:52 +02:00
errors.go Fix chats reseting when a Sync signal comes for communities (#3539) 2023-05-29 13:57:05 -04:00
manager.go feat: add configurable throttling mechanism for importing msgs 2023-06-06 08:49:02 +02:00
manager_test.go chore(upgradeSQLCipher): Upgrading SQLCipher to version 5.4.5 (#3559) 2023-06-07 08:58:01 +03:00
persistence.go fix(GetAllCommunityTokens): Add GetAllCommunityTokens function 2023-05-05 18:14:55 +02:00
persistence_test.go feat(CommunityTokenMetadata): Keep token metadata in CommunityDescription 2023-03-07 08:40:47 +01:00
persistence_test_helpers.go feat: add `SpectateCommunity` api 2022-10-06 21:21:37 +02:00
request_to_join.go Community request to join changes for pending and declined states (#3387) 2023-04-21 14:48:47 +05:30
request_to_join_test.go Sync Communities (#2253) 2021-08-06 16:40:23 +01:00
request_to_leave.go feat: introduce and distribute RequestToLeave community 2022-08-26 11:25:33 +02:00
utils.go feat: introduce and distribute RequestToLeave community 2022-08-26 11:25:33 +02:00
validator.go feat: community tags (#2708) 2022-06-24 09:40:12 -04:00