improve diff filters

fix tests
expander/compressor filter mangler
This commit is contained in:
2023-06-01 22:03:28 +01:00
parent 25e7f68dce
commit ae6618f0ed
39 changed files with 504 additions and 261 deletions

View File

@ -15,7 +15,7 @@ import {
NostrPrefix,
decodeTLV,
TLVEntryType,
RawEvent,
NostrEvent,
} from "System";
import { MetadataCache } from "Cache";
import NostrLink from "Element/NostrLink";
@ -482,7 +482,7 @@ export function chunks<T>(arr: T[], length: number) {
return result;
}
export function findTag(e: RawEvent, tag: string) {
export function findTag(e: NostrEvent, tag: string) {
const maybeTag = e.tags.find(evTag => {
return evTag[0] === tag;
});