retrySend: handle public groups

pull/1205/head
Audric Ackermann 5 years ago
parent 4c890482f7
commit 2a3b82ed9c
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -1014,8 +1014,28 @@
// ? storage.get('profileKey')
// : null;
if (conversation.isPublic()) {
const openGroup = {
server: conversation.get('server'),
channel: conversation.get('channelId'),
conversationId: conversation.id,
};
const openGroupParams = {
identifier: this.id,
body: this.get('body'),
timestamp: Date.now(),
group: openGroup,
};
const openGroupMessage = new libsession.Messages.Outgoing.OpenGroupMessage(
openGroupParams
);
return libsession.getMessageQueue().sendToGroup(openGroupMessage);
}
let recipients = _.intersection(intendedRecipients, currentRecipients);
recipients = recipients.filter(key => !successfulRecipients.includes(key));
recipients = recipients.filter(
key => !successfulRecipients.includes(key)
);
if (!recipients.length) {
window.log.warn('retrySend: Nobody to send to!');

Loading…
Cancel
Save