Merge pull request #351 from w3irdrobot/mentions-dont-make-thread

Update thread detection to not include mentions
This commit is contained in:
Kieran 2023-02-24 19:48:16 +00:00 committed by GitHub
commit 4c0098e3af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ export default class Thread {
* @param ev Event to extract thread from
*/
static ExtractThread(ev: NEvent) {
const isThread = ev.Tags.some((a) => a.Key === "e");
const isThread = ev.Tags.some((a) => a.Key === "e" && a.Marker !== "mention");
if (!isThread) {
return null;
}