|
|
|
@ -809,6 +809,7 @@
|
|
|
|
|
if (convo) {
|
|
|
|
|
convo.sendMessage('', null, null, null, {
|
|
|
|
|
serverName: serverInfo.name,
|
|
|
|
|
channelId: serverInfo.channelId,
|
|
|
|
|
serverAddress: serverInfo.address,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
@ -833,10 +834,11 @@
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Whisper.events.on('invitationAccepted', async serverAddress => {
|
|
|
|
|
Whisper.events.on(
|
|
|
|
|
'invitationAccepted',
|
|
|
|
|
async (serverAddress, channelId) => {
|
|
|
|
|
// To some degree this has been copy-pasted
|
|
|
|
|
// form connection_to_server_dialog_view.js:
|
|
|
|
|
const channelId = 1;
|
|
|
|
|
const rawServerUrl = serverAddress
|
|
|
|
|
.replace(/^https?:\/\//i, '')
|
|
|
|
|
.replace(/[/\\]+$/i, '');
|
|
|
|
@ -869,7 +871,8 @@
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
appView.openConversation(conversationId, {});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Whisper.events.on('leaveGroup', async groupConvo => {
|
|
|
|
|
if (appView) {
|
|
|
|
|