Support EditDisable and EditSuffix for Matrix.

Fixes #2073.
This commit is contained in:
Rudolf Polzer
2025-01-17 11:49:09 -05:00
parent c4157a4d5b
commit 2870216804
2 changed files with 13 additions and 0 deletions

View File

@@ -432,8 +432,13 @@ func (b *Bmatrix) handleEdit(ev *matrix.Event, rmsg config.Message) bool {
return false
}
if b.GetBool("EditDisable") {
return true
}
rmsg.ID = relation.EventID
rmsg.Text = newContent.Body
rmsg.Text += b.GetString("EditSuffix")
b.Remote <- rmsg
return true