pull/1137/head
Audric Ackermann 5 years ago
parent 1b39992e4a
commit 014b475af7
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -324,7 +324,9 @@ module.exports = {
async addFriendToNewClosedGroup(members, useSenderKeys) { async addFriendToNewClosedGroup(members, useSenderKeys) {
const [app, ...others] = members; const [app, ...others] = members;
await app.client.element(ConversationPage.conversationButtonSection).click(); await app.client
.element(ConversationPage.conversationButtonSection)
.click();
await app.client.element(ConversationPage.createClosedGroupButton).click(); await app.client.element(ConversationPage.createClosedGroupButton).click();
await this.setValueWrapper( await this.setValueWrapper(
@ -567,7 +569,7 @@ module.exports = {
console.warn('NO PUBKEY'); console.warn('NO PUBKEY');
response.writeHead(400, { 'Content-Type': 'text/html' }); response.writeHead(400, { 'Content-Type': 'text/html' });
response.end(); response.end();
return; return;
} }
if (request.method === 'POST') { if (request.method === 'POST') {
@ -620,7 +622,9 @@ module.exports = {
}, },
async joinOpenGroup(app, openGroupUrl, name) { async joinOpenGroup(app, openGroupUrl, name) {
await app.client.element(ConversationPage.conversationButtonSection).click(); await app.client
.element(ConversationPage.conversationButtonSection)
.click();
await app.client.element(ConversationPage.joinOpenGroupButton).click(); await app.client.element(ConversationPage.joinOpenGroupButton).click();
await this.setValueWrapper( await this.setValueWrapper(

@ -39,7 +39,9 @@ describe('Open groups', function() {
); );
// adding a second time the same open group // adding a second time the same open group
await app.client.element(ConversationPage.conversationButtonSection).click(); await app.client
.element(ConversationPage.conversationButtonSection)
.click();
await app.client.element(ConversationPage.joinOpenGroupButton).click(); await app.client.element(ConversationPage.joinOpenGroupButton).click();
await common.setValueWrapper( await common.setValueWrapper(
@ -64,7 +66,9 @@ describe('Open groups', function() {
it('openGroup: can send message to open group', async () => { it('openGroup: can send message to open group', async () => {
// join dev-chat group // join dev-chat group
await app.client.element(ConversationPage.conversationButtonSection).click(); await app.client
.element(ConversationPage.conversationButtonSection)
.click();
await app.client.element(ConversationPage.joinOpenGroupButton).click(); await app.client.element(ConversationPage.joinOpenGroupButton).click();
await common.setValueWrapper( await common.setValueWrapper(

@ -695,7 +695,9 @@ MessageSender.prototype = {
}) })
)) || []; )) || [];
// filter out our primary pubkey if it was added. // filter out our primary pubkey if it was added.
sessionContactsSecondary = sessionContactsSecondary.filter(c => c.id !== primaryDeviceKey); sessionContactsSecondary = sessionContactsSecondary.filter(
c => c.id !== primaryDeviceKey
);
const contactsSet = new Set([ const contactsSet = new Set([
...sessionContactsPrimary, ...sessionContactsPrimary,
@ -707,10 +709,9 @@ MessageSender.prototype = {
return Promise.resolve(); return Promise.resolve();
} }
libloki.api.debug.logContactSync( libloki.api.debug.logContactSync('Triggering contact sync message with:', [
'Triggering contact sync message with:', ...contactsSet,
[...contactsSet] ]);
);
// We need to sync across 3 contacts at a time // We need to sync across 3 contacts at a time
// This is to avoid hitting storage server limit // This is to avoid hitting storage server limit

Loading…
Cancel
Save