Fix sticker manager

This commit is contained in:
Fedor Indutny 2023-05-04 11:36:17 -07:00 committed by Josh Perez
parent 51d1a62f70
commit d9c0366219

View file

@ -4090,7 +4090,15 @@ async function getAllStickerPacks(): Promise<Array<StickerPackType>> {
)
.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 {
const db = getInstance();