Tells userId's devices where the uploaded bundle for scope is, and how
to open it.
url is the mxc:// URI your upload returned. secret is
HistoryBundle.secret, handed back unchanged. Both travel inside
end-to-end encrypted to-device messages, so neither the location nor the
key reaches your homeserver in clear.
Call this only once the upload has succeeded. See
buildHistoryBundle for why the order matters.
Like every other outbound message this library produces, the announcement
is queued rather than sent: it has not been made until
takeOutgoingRequests has handed it over, your product has sent it,
and markRequestSent has reported it.
Announcing twice is not free. Each call queues a fresh encrypted
message to every one of the recipient's devices; nothing deduplicates
them.
Tells
userId's devices where the uploaded bundle forscopeis, and how to open it.urlis themxc://URI your upload returned.secretis HistoryBundle.secret, handed back unchanged. Both travel inside end-to-end encrypted to-device messages, so neither the location nor the key reaches your homeserver in clear.Call this only once the upload has succeeded. See buildHistoryBundle for why the order matters.
Like every other outbound message this library produces, the announcement is queued rather than sent: it has not been made until takeOutgoingRequests has handed it over, your product has sent it, and markRequestSent has reported it.
Announcing twice is not free. Each call queues a fresh encrypted message to every one of the recipient's devices; nothing deduplicates them.