mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-14 17:33:48 +01:00
Add '♻️' as an alternative reaction for retrying media
This commit is contained in:
parent
4d19d27dad
commit
dd58e8d1e7
1 changed files with 1 additions and 1 deletions
|
@ -480,7 +480,7 @@ func (mx *MatrixHandler) HandleReaction(evt *event.Event) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
content := evt.Content.AsReaction()
|
content := evt.Content.AsReaction()
|
||||||
if content.RelatesTo.Key == "click to retry" {
|
if content.RelatesTo.Key == "click to retry" || strings.HasPrefix(content.RelatesTo.Key, "\u267b") { // ♻️
|
||||||
portal.requestMediaRetry(user, content.RelatesTo.EventID)
|
portal.requestMediaRetry(user, content.RelatesTo.EventID)
|
||||||
} else if mx.bridge.Config.Bridge.ReactionNotices {
|
} else if mx.bridge.Config.Bridge.ReactionNotices {
|
||||||
_, _ = portal.sendMainIntentMessage(&event.MessageEventContent{
|
_, _ = portal.sendMainIntentMessage(&event.MessageEventContent{
|
||||||
|
|
Loading…
Reference in a new issue