auto-join on invite

master
lub 5 years ago
parent 32a138b915
commit eae1df053c

@ -41,6 +41,9 @@ async function matrixEventHandler(request, context) {
tmiClient.disconnect(); tmiClient.disconnect();
}); });
}); });
} else if(event.content.membership === 'invite' && event.state_key === '@'+bridge.opts.registration.sender_localpart+':'+bridge.opts.domain) {
// auto-join on invite
bridge.getIntent().join(event.room_id);
} }
}; };

Loading…
Cancel
Save