Don't try to send a mailbox message as an anonymous user

pull/1/head
yflory 2020-06-22 15:02:39 +02:00 committed by ansuz
parent b868acc641
commit fe36d1ca12
1 changed files with 1 additions and 0 deletions

View File

@ -478,6 +478,7 @@ define([
store: store,
};
var myData = Messaging.createData(userObject);
if (!myData.curvePublic) { return void done(); }
Mailbox.sendTo(ctx, 'SAFE_LINKS_DEFAULT', {
user: myData,