do not react on edits and redactions, add section titles in help message

This commit is contained in:
Aine
2022-11-21 23:57:49 +02:00
parent 21772d7360
commit b4d6d992ac
3 changed files with 16 additions and 10 deletions

View File

@@ -32,16 +32,17 @@ func EventParent(currentID id.EventID, content *event.MessageEventContent) id.Ev
return currentID
}
if content.GetRelatesTo() == nil {
relation := content.OptionalGetRelatesTo()
if relation == nil {
return currentID
}
threadParent := content.RelatesTo.GetThreadParent()
threadParent := relation.GetThreadParent()
if threadParent != "" {
return threadParent
}
replyParent := content.RelatesTo.GetReplyTo()
replyParent := relation.GetReplyTo()
if replyParent != "" {
return replyParent
}