forked from MirrorHub/mautrix-whatsapp
Redact recycle emoji after requesting retry
This commit is contained in:
parent
0665c74cce
commit
357cb5af90
1 changed files with 3 additions and 0 deletions
|
@ -492,6 +492,9 @@ func (mx *MatrixHandler) HandleReaction(evt *event.Event) {
|
|||
content := evt.Content.AsReaction()
|
||||
if strings.Contains(content.RelatesTo.Key, "retry") || strings.HasPrefix(content.RelatesTo.Key, "\u267b") { // ♻️
|
||||
if portal.requestMediaRetry(user, content.RelatesTo.EventID) {
|
||||
_, _ = portal.MainIntent().RedactEvent(portal.MXID, evt.ID, mautrix.ReqRedact{
|
||||
Reason: "requested media from phone",
|
||||
})
|
||||
// Errored media, don't try to send as reaction
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue