Browse Source

Send "delivery" receipt for messages bridged from WhatsApp too

Tulir Asokan 5 years ago
parent
commit
535efcc8bd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      portal.go

+ 1 - 0
portal.go

@@ -279,6 +279,7 @@ func (portal *Portal) startHandling(info whatsapp.MessageInfo) bool {
 
 func (portal *Portal) finishHandling(source *User, message *waProto.WebMessageInfo, mxid id.EventID) {
 	portal.markHandled(source, message, mxid)
+	portal.sendDeliveryReceipt(mxid)
 	portal.log.Debugln("Handled message", message.GetKey().GetId(), "->", mxid)
 }