Skip to content
Snippets Groups Projects
Verified Commit 1eec6eaa authored by Wojciech Barcik's avatar Wojciech Barcik
Browse files

(#205) Don't do anything related to Rocket Chat

when SDC_OPENHIVE_CHAT_IFRAME_INTEGRATION_ENABLE is not set to "yes".
parent 59835e4e
No related branches found
No related tags found
1 merge request!371Resolve "Improve integration with Rocket Chat"
......@@ -162,8 +162,8 @@ export default function useGeneralApi(app) {
};
// Add auth token for chat to response.
if (config.get('openhive_chat_iframe_integration_enable')) {
let result = {};
if (config.get('openhive_chat_iframe_integration_enable') === 'yes') {
let result = {};
if (ctx.session.a) {
result = await getChatAuthToken(ctx.session.a);
} else if (ctx.session.externalUser && ctx.session.externalUser.system === 'hivesigner') {
......
......@@ -108,8 +108,8 @@ useGeneralApi(app);
if (config.get('oauth_server') && (config.get('oauth_server')).enable === 'yes') {
oauthServer(app);
}
if (config.get('openhive_chat_iframe_integration_enable')) {
useRocketChat(app);
if (config.get('openhive_chat_iframe_integration_enable') === 'yes') {
useRocketChat(app);
}
useRedirects(app);
useUserJson(app);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment