Merge branches 'develop' and 't3chguy/i18n_analytics' of github.com:matrix-org/matrix-react-sdk into t3chguy/i18n_analytics
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> # Conflicts: # src/Analytics.js
This commit is contained in:
commit
b19c1010aa
25 changed files with 694 additions and 168 deletions
|
@ -30,8 +30,9 @@ const customVariables = {
|
|||
'User Type': 3,
|
||||
'Chosen Language': 4,
|
||||
'Instance': 5,
|
||||
'Homeserver URL': 6,
|
||||
'Identity Server URL': 7,
|
||||
'RTE: Uses Richtext Mode': 6,
|
||||
'Homeserver URL': 7,
|
||||
'Identity Server URL': 8,
|
||||
};
|
||||
|
||||
function whitelistRedact(whitelist, str) {
|
||||
|
@ -148,6 +149,11 @@ class Analytics {
|
|||
this._setVisitVariable('Homeserver URL', whitelistRedact(whitelistedHSUrls, homeserverUrl));
|
||||
this._setVisitVariable('Identity Server URL', whitelistRedact(whitelistedISUrls, identityServerUrl));
|
||||
}
|
||||
|
||||
setRichtextMode(state) {
|
||||
if (this.disabled) return;
|
||||
this._setVisitVariable('RTE: Uses Richtext Mode', state ? 'on' : 'off');
|
||||
}
|
||||
}
|
||||
|
||||
if (!global.mxAnalytics) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue