bug: ignore DM's with no `p` tag

fixes: #527
fixes: #530
This commit is contained in:
Kieran 2023-04-25 13:36:33 +01:00
parent 69ec48141b
commit 816aa3b838
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ export default function useLoginFeed() {
setFollows(login, pTags, contactList.created_at * 1000);
}
const dms = loginFeed.data.filter(a => a.kind === EventKind.DirectMessage);
const dms = loginFeed.data.filter(a => a.kind === EventKind.DirectMessage && a.tags.some(b => b[0] === "p"));
DmCache.bulkSet(dms);
const subs = loginFeed.data.filter(