Send form notification anonymously

This commit is contained in:
yflory 2022-12-15 16:22:38 +01:00
parent de240c3af4
commit 75de90c8b5
3 changed files with 3 additions and 1 deletions

View File

@ -1957,7 +1957,7 @@ define([
if (owner) {
if (data.send) {
var sendTo = function (query, msg, user, _cb) {
if (store.mailbox) {
if (store.mailbox && !data.anon) {
return store.mailbox.sendTo(query, msg, user, _cb);
}
Mailbox.sendToAnon(store.anon_rpc, query, msg, user, _cb);

View File

@ -1073,6 +1073,7 @@ define([
Cryptpad.padRpc.contactOwner({
send: send,
anon: data.anon,
query: data.query,
msgData: data.msgData,
channel: _secret.channel,

View File

@ -3348,6 +3348,7 @@ define([
var priv = metadataMgr.getPrivateData();
sframeChan.query('Q_CONTACT_OWNER', {
send: true,
anon: true,
query: "FORM_RESPONSE",
msgData: { channel: priv.channel }
}, function (err, obj) {