The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/packages/rocketchat-otr/client/tabBar.js

19 lines
514 B

Meteor.startup(function() {
Tracker.autorun(function() {
if (RocketChat.settings.get('OTR_Enable') && window.crypto) {
RocketChat.OTR.crypto = window.crypto.subtle || window.crypto.webkitSubtle;
RocketChat.OTR.enabled.set(true);
RocketChat.TabBar.addButton({
groups: ['directmessage'],
id: 'otr',
i18nTitle: 'OTR',
icon: 'icon-key',
template: 'otrFlexTab',
order: 11
});
} else {
RocketChat.OTR.enabled.set(false);
RocketChat.TabBar.removeButton('otr');
}
});
});