fix thread fallback (#1478)

This commit is contained in:
Ajay Bura 2023-10-23 21:43:07 +11:00 committed by GitHub
parent 1ff312d236
commit c0abb0d50d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View file

@ -380,3 +380,7 @@ export const getLatestEditableEvt = (
}
return undefined;
};
export const reactionOrEditEvent = (mEvent: MatrixEvent) =>
mEvent.getRelation()?.rel_type === RelationType.Annotation ||
mEvent.getRelation()?.rel_type === RelationType.Replace;