Skip to content

Commit dbac2b1

Browse files
committed
followup fix for #57
1 parent 0224655 commit dbac2b1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@beeper/platform-imessage",
3-
"version": "0.18.0",
3+
"version": "0.18.1",
44
"main": "dist/index.js",
55
"type": "module",
66
"exports": {

src/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -885,8 +885,8 @@ export default class AppleiMessage implements PlatformAPI {
885885
}
886886

887887
case 'reaction-sticker': {
888-
if (!/^\d+$/.test(methodName)) throw new Error("invalid reaction sticker row ID")
889-
const reactionRowID = Number(methodName)
888+
const rowIDStr = methodName.split('.', 1)?.[0]
889+
const reactionRowID = Number(rowIDStr)
890890
if (!Number.isSafeInteger(reactionRowID)) throw new Error("invalid reaction sticker row ID")
891891
const db = await this.ensureDB()
892892
const attachment = (await db.getAttachments([reactionRowID])).find(a => a.filePath)

0 commit comments

Comments
 (0)