Enable synchronising Sticker Pack setting fields
This commit is contained in:
parent
cc80f5753b
commit
efa14805bd
|
@ -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,
|
||||
|
|
|
@ -409,6 +409,10 @@ func extractJSONBlob(jb *sqlite.JSONBlob) ([]byte, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if value == nil {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
return value.([]byte), nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue