Fix sticker manager
This commit is contained in:

committed by
Josh Perez

parent
51d1a62f70
commit
d9c0366219
@@ -4090,7 +4090,15 @@ async function getAllStickerPacks(): Promise<Array<StickerPackType>> {
|
|||||||
)
|
)
|
||||||
.all();
|
.all();
|
||||||
|
|
||||||
return rows || [];
|
return rows.map(row => {
|
||||||
|
return {
|
||||||
|
...row,
|
||||||
|
// The columns have STRING type so if they have numeric value, sqlite
|
||||||
|
// will return integers.
|
||||||
|
author: String(row.author),
|
||||||
|
title: String(row.title),
|
||||||
|
};
|
||||||
|
});
|
||||||
}
|
}
|
||||||
function addUninstalledStickerPackSync(pack: UninstalledStickerPackType): void {
|
function addUninstalledStickerPackSync(pack: UninstalledStickerPackType): void {
|
||||||
const db = getInstance();
|
const db = getInstance();
|
||||||
|
Reference in New Issue
Block a user