File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments