Skip to content

Commit b5339b7

Browse files
committed
fix sticker
1 parent 27dcf69 commit b5339b7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/fb_revealDeletedMessages.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ export default {
118118
type: window.UfsChatType.sticker,
119119
content: parse(
120120
all_strings[i + 6].match(/"playableUrl":"(.*?)"/)?.[1] ||
121+
all_strings[i + 6].match(/"previewUrl":"(.*?)"/)?.[1] ||
121122
all_strings[i + 9].match(/"previewUrl":"(.*?)"/)?.[1] ||
122123
""
123124
),
@@ -169,7 +170,7 @@ export default {
169170
chats.push({
170171
type: window.UfsChatType.share_location,
171172
content: parse(
172-
all_strings[i + 1].match(/"actionUrl":"(.*?)"/) || ""
173+
all_strings[i + 1].match(/"actionUrl":"(.*?)"/)?.[1] || ""
173174
),
174175
id: all_strings[i + 8],
175176
});
@@ -178,7 +179,7 @@ export default {
178179
chats.push({
179180
type: window.UfsChatType.realtime_location,
180181
content: parse(
181-
all_strings[i + 1].match(/"actionUrl":"(.*?)"/) || ""
182+
all_strings[i + 1].match(/"actionUrl":"(.*?)"/)?.[1] || ""
182183
),
183184
id: all_strings[i - 10],
184185
});

0 commit comments

Comments
 (0)