status-go/protocol/protobuf
Samuel Hawksby-Robinson e67592d556
Sync Settings (#2478)
* Sync Settings

* Added valueHandlers and Database singleton

Some issues remain, need a way to comparing incoming sql.DB to check if the connection is to a different file or not. Maybe make singleton instance per filename

* Added functionality to check the sqlite filename

* Refactor of Database.SaveSyncSettings to be used as a handler

* Implemented inteface for setting sync protobuf factories

* Refactored and completed adhoc send setting sync

* Tidying up

* Immutability refactor

* Refactor settings into dedicated package

* Breakout structs

* Tidy up

* Refactor of bulk settings sync

* Bug fixes

* Addressing feedback

* Fix code dropped during rebase

* Fix for db closed

* Fix for node config related crashes

* Provisional fix for type assertion - issue 2

* Adding robust type assertion checks

* Partial fix for null literal db storage and json encoding

* Fix for passively handling nil sql.DB, and checking if elem has len and if len is 0

* Added test for preferred name behaviour

* Adding saved sync settings to MessengerResponse

* Completed granular initial sync and clock from network on save

* add Settings to isEmpty

* Refactor of protobufs, partially done

* Added syncSetting receiver handling, some bug fixes

* Fix for sticker packs

* Implement inactive flag on sync protobuf factory

* Refactor of types and structs

* Added SettingField.CanSync functionality

* Addressing rebase artifact

* Refactor of Setting SELECT queries

* Refactor of string return queries

* VERSION bump and migration index bump

* Deactiveate Sync Settings

* Deactiveated preferred_name and send_status_updates

Co-authored-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2022-03-23 18:47:00 +00:00
..
anon_metrics.pb.go Backup communities 2022-03-23 14:45:52 +00:00
anon_metrics.proto Anon Metrics Broadcast (#2198) 2021-09-01 13:02:18 +01:00
application_metadata_message.pb.go Sync Settings (#2478) 2022-03-23 18:47:00 +00:00
application_metadata_message.proto Sync Settings (#2478) 2022-03-23 18:47:00 +00:00
chat_identity.pb.go Backup communities 2022-03-23 14:45:52 +00:00
chat_identity.proto feat: display name 2022-03-14 13:48:34 -04:00
chat_message.pb.go Backup communities 2022-03-23 14:45:52 +00:00
chat_message.proto feat: display name 2022-03-14 13:48:34 -04:00
command.pb.go Backup communities 2022-03-23 14:45:52 +00:00
command.proto Sync Communities (#2253) 2021-08-06 16:40:23 +01:00
communities.pb.go Backup communities 2022-03-23 14:45:52 +00:00
communities.proto Sync Communities (#2253) 2021-08-06 16:40:23 +01:00
contact.pb.go Backup communities 2022-03-23 14:45:52 +00:00
contact.proto feat: display name 2022-03-14 13:48:34 -04:00
emoji_reaction.pb.go Backup communities 2022-03-23 14:45:52 +00:00
emoji_reaction.proto Sync Communities (#2253) 2021-08-06 16:40:23 +01:00
enums.pb.go Backup communities 2022-03-23 14:45:52 +00:00
enums.proto Sync Communities (#2253) 2021-08-06 16:40:23 +01:00
group_chat_invitation.pb.go Backup communities 2022-03-23 14:45:52 +00:00
group_chat_invitation.proto Sync Communities (#2253) 2021-08-06 16:40:23 +01:00
membership_update_message.pb.go Backup communities 2022-03-23 14:45:52 +00:00
membership_update_message.proto Sync Communities (#2253) 2021-08-06 16:40:23 +01:00
pairing.pb.go Backup communities 2022-03-23 14:45:52 +00:00
pairing.proto Backup communities 2022-03-23 14:45:52 +00:00
pin_message.pb.go Backup communities 2022-03-23 14:45:52 +00:00
pin_message.proto Sync Communities (#2253) 2021-08-06 16:40:23 +01:00
pubkey.go Use goimports instead of gofmt 2020-01-06 10:17:23 +01:00
push_notifications.pb.go Backup communities 2022-03-23 14:45:52 +00:00
push_notifications.proto Sync Communities (#2253) 2021-08-06 16:40:23 +01:00
service.go Sync Settings (#2478) 2022-03-23 18:47:00 +00:00
status_update.pb.go Backup communities 2022-03-23 14:45:52 +00:00
status_update.proto Online Status Indicator (#2408) 2021-10-28 20:51:28 +05:30
sync_settings.pb.go Sync Settings (#2478) 2022-03-23 18:47:00 +00:00
sync_settings.proto Sync Settings (#2478) 2022-03-23 18:47:00 +00:00