create a conversation with member of a closedgroup we receive

pull/1205/head
Audric Ackermann 5 years ago
parent 105acd63d8
commit 1413b98749
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -1839,8 +1839,9 @@
createParams createParams
); );
members.forEach(member => { members.forEach(async member => {
const memberPubKey = new libsession.Types.PubKey(member); const memberPubKey = new libsession.Types.PubKey(member);
await ConversationController.getOrCreateAndWait(member, 'private');
libsession libsession
.getMessageQueue() .getMessageQueue()
.sendUsingMultiDevice(memberPubKey, mediumGroupCreateMessage); .sendUsingMultiDevice(memberPubKey, mediumGroupCreateMessage);

@ -1,4 +1,4 @@
/* global window, textsecure, libsession */ /* global window, textsecure, libsession, ConversationController */
/* eslint-disable no-bitwise */ /* eslint-disable no-bitwise */
// eslint-disable-next-line func-names // eslint-disable-next-line func-names
@ -108,6 +108,7 @@
const ourPubKey = textsecure.storage.user.getNumber(); const ourPubKey = textsecure.storage.user.getNumber();
if (memberStr !== ourPubKey) { if (memberStr !== ourPubKey) {
const memberPubkey = new libsession.Types.PubKey(memberStr); const memberPubkey = new libsession.Types.PubKey(memberStr);
await ConversationController.getOrCreateAndWait(memberStr, 'private');
await libsession.Protocols.SessionProtocol.sendSessionRequestIfNeeded( await libsession.Protocols.SessionProtocol.sendSessionRequestIfNeeded(
memberPubkey memberPubkey
); );

Loading…
Cancel
Save