Read requests

This commit is contained in:
M66B 2021-12-15 20:32:54 +01:00
parent 1bed7903db
commit b99088d1ad
1 changed files with 6 additions and 2 deletions

View File

@ -408,8 +408,12 @@ public class MessageHelper {
// https://tools.ietf.org/html/rfc3798
if (receipt_type == 0 || receipt_type == 2) // Read receipt
if (receipt_type == 0 || receipt_type == 2) {
// Read receipt
imessage.addHeader("Disposition-Notification-To", to);
imessage.addHeader("Read-Receipt-To", to);
imessage.addHeader("X-Confirm-Reading-To", to);
}
}
}
@ -1456,7 +1460,7 @@ public class MessageHelper {
if (receipt == null || receipt.length == 0)
receipt = getAddressHeader("Read-Receipt-To");
if (receipt == null || receipt.length == 0)
receipt = getAddressHeader("X-Confirm-reading-to");
receipt = getAddressHeader("X-Confirm-Reading-To");
return receipt;
}