mark outgoing 1:1 messages <markable/> so peers can send displayed markers (#18)
iOS CI / Build and Test SwiftUI App (push) Canceled after 0s
Build Unsigned iOS and macOS Apps / Build Unsigned iOS IPA (push) Canceled after 0s
Build Unsigned iOS and macOS Apps / Build macOS ZIP (push) Canceled after 0s

Martin only attaches <request/> (XEP-0184 receipts) in createMessage, so
Conversations/Monal had no licence to answer with <displayed/> and read
state was stuck on delivered. MUC stays exempt per XEP-0333.
This commit is contained in:
wt committed 2026-09-18 13:16:47 +07:00
1 parent 338affd89e
commit 0d6c562abd
2 files changed
+11

No files matched your search

+4
View File
@@ -429,6 +429,10 @@ if grep -q 'message.body = Self.readMarkerBody' Sources/Shared/XMPP/XMPPService.
echo "Read-marker service stanzas must not carry a plaintext body (it leaks into self-chat on other clients)"
exit 1
fi
grep -q 'message.isMarkable = true' Sources/Shared/XMPP/XMPPService.swift || {
echo "Outgoing 1:1 messages must be <markable/> or peers never answer with <displayed/>"
exit 1
}
grep -q 'markersPublisher' Sources/Shared/XMPP/XMPPService.swift || {
echo "XEP-0333 displayed markers must mark messages as read"
exit 1