chore: Update translations

This commit is contained in:
2023-09-05 13:59:44 +00:00
parent b1459d0f49
commit df7353a43c
37 changed files with 7031 additions and 800 deletions

View File

@ -4,7 +4,7 @@ import { findTag, unwrap } from "SnortUtils";
import { RefreshFeedCache } from "./RefreshFeedCache";
import { LoginSession } from "Login";
export class GiftWrapCache extends RefreshFeedCache<UnwrappedGift> {
export class GiftWrapCache extends RefreshFeedCache<UnwrappedGift> {
constructor() {
super("GiftWrapCache", db.gifts);
}
@ -15,13 +15,11 @@ export class GiftWrapCache extends RefreshFeedCache<UnwrappedGift> {
buildSub(session: LoginSession, rb: RequestBuilder): void {
const pubkey = session.publicKey;
if(pubkey) {
rb.withFilter()
.kinds([EventKind.GiftWrap])
.tag("p", [pubkey]).since(this.newest());
if (pubkey) {
rb.withFilter().kinds([EventKind.GiftWrap]).tag("p", [pubkey]).since(this.newest());
}
}
takeSnapshot(): Array<UnwrappedGift> {
return [...this.cache.values()];
}