Enable synchronising Sticker Pack setting fields

This commit is contained in:
Audrius Molis 2022-05-16 08:04:53 +03:00 committed by Audrius Molis
parent cc80f5753b
commit efa14805bd
2 changed files with 4 additions and 4 deletions

View File

@ -322,9 +322,7 @@ var (
reactFieldName: "stickers/packs-pending",
dBColumnName: "stickers_packs_pending",
valueHandler: JSONBlobHandler,
// TODO resolve issue 8 https://github.com/status-im/status-react/pull/13053#issuecomment-1065179963
syncProtobufFactory: &SyncProtobufFactory{
inactive: true, // Remove after issue is resolved
fromInterface: stickersPacksPendingProtobufFactory,
fromStruct: stickersPacksPendingProtobufFactoryStruct,
valueFromProtobuf: BytesFromSyncProtobuf,
@ -335,9 +333,7 @@ var (
reactFieldName: "stickers/recent-stickers",
dBColumnName: "stickers_recent_stickers",
valueHandler: JSONBlobHandler,
// TODO resolve issue 8 https://github.com/status-im/status-react/pull/13053#issuecomment-1065179963
syncProtobufFactory: &SyncProtobufFactory{
inactive: true, // Remove after issue is resolved
fromInterface: stickersRecentStickersProtobufFactory,
fromStruct: stickersRecentStickersProtobufFactoryStruct,
valueFromProtobuf: BytesFromSyncProtobuf,

View File

@ -409,6 +409,10 @@ func extractJSONBlob(jb *sqlite.JSONBlob) ([]byte, error) {
return nil, err
}
if value == nil {
return nil, nil
}
return value.([]byte), nil
}