forked from Kieran/snort
chore: Update translations
This commit is contained in:
parent
9f763fccba
commit
c68565c484
@ -86,7 +86,10 @@ self.addEventListener("push", async e => {
|
|||||||
}
|
}
|
||||||
case PushType.Zap: {
|
case PushType.Zap: {
|
||||||
const evx = data.data as CompactReaction;
|
const evx = data.data as CompactReaction;
|
||||||
await self.registration.showNotification(`${displayNameOrDefault(evx.author)} zapped${evx.amount ? ` ${formatShort(evx.amount)} sats` : ""}`, makeNotification(evx));
|
await self.registration.showNotification(
|
||||||
|
`${displayNameOrDefault(evx.author)} zapped${evx.amount ? ` ${formatShort(evx.amount)} sats` : ""}`,
|
||||||
|
makeNotification(evx),
|
||||||
|
);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case PushType.Repost: {
|
case PushType.Repost: {
|
||||||
@ -96,7 +99,10 @@ self.addEventListener("push", async e => {
|
|||||||
}
|
}
|
||||||
case PushType.DirectMessage: {
|
case PushType.DirectMessage: {
|
||||||
const evx = data.data as CompactReaction;
|
const evx = data.data as CompactReaction;
|
||||||
await self.registration.showNotification(`${displayNameOrDefault(evx.author)} sent you a DM`, makeNotification(evx));
|
await self.registration.showNotification(
|
||||||
|
`${displayNameOrDefault(evx.author)} sent you a DM`,
|
||||||
|
makeNotification(evx),
|
||||||
|
);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -134,6 +140,6 @@ function makeNotification(evx: CompactMention | CompactReaction) {
|
|||||||
icon: evx.author.avatar ?? defaultAvatar(evx.author.pubkey),
|
icon: evx.author.avatar ?? defaultAvatar(evx.author.pubkey),
|
||||||
badge: CONFIG.appleTouchIconUrl,
|
badge: CONFIG.appleTouchIconUrl,
|
||||||
timestamp: evx.created_at * 1000,
|
timestamp: evx.created_at * 1000,
|
||||||
tag: new NostrLink(NostrPrefix.Event, evx.id, undefined, evx.author.pubkey, undefined).encode()
|
tag: new NostrLink(NostrPrefix.Event, evx.id, undefined, evx.author.pubkey, undefined).encode(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user