Skip to content

Commit

Permalink
fix: notify styles
Browse files Browse the repository at this point in the history
  • Loading branch information
dmoosocool committed Oct 31, 2023
1 parent 01363ba commit a55f281
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/NaturalSelectionLabs/RSS3-MetaMask-Snap.git"
},
"source": {
"shasum": "LzxqoM9rAkicT97UYNE2inSY4KoE/532tFOShDZgR5U=",
"shasum": "1lmnkid0IQzmmw0ZJyWTODIJu+Vzqeo1KG5TL2xmFeY=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
11 changes: 8 additions & 3 deletions packages/snap/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -484,14 +484,19 @@ export const onCronjob: OnCronjobHandler = async ({ request }) => {
(follower) =>
follower.lastActivities?.map((activity) => activity.text) ?? [],
);
lastActivities?.length &&

if (lastActivities && lastActivities.length > 0) {
content.push(
heading(
`${profile.owner.handle}'s following has new activities.`,
),
text(lastActivities.join('\n')),
divider(),
);

lastActivities.forEach((activity) => {
content.push(text(activity));
content.push(divider());
});
}
});
});

Expand Down

0 comments on commit a55f281

Please sign in to comment.