From d9c0366219546006c34a845da1f23e3bf72e167d Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Thu, 4 May 2023 11:36:17 -0700 Subject: [PATCH] Fix sticker manager --- ts/sql/Server.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ts/sql/Server.ts b/ts/sql/Server.ts index 019acb259..12af3ee24 100644 --- a/ts/sql/Server.ts +++ b/ts/sql/Server.ts @@ -4090,7 +4090,15 @@ async function getAllStickerPacks(): Promise> { ) .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();