mirror of https://github.com/vector-im/riot-web
				
				
				
			Merge pull request #3805 from matrix-org/t3chguy/rageshake_enabled_labs
Send the labs flags the client is running with in rageshakepull/21833/head
						commit
						449efec1a1
					
				|  | @ -27,6 +27,7 @@ import rageshake from './rageshake'; | |||
| 
 | ||||
| // polyfill textencoder if necessary
 | ||||
| import * as TextEncodingUtf8 from 'text-encoding-utf-8'; | ||||
| import SettingsStore from "../settings/SettingsStore"; | ||||
| let TextEncoder = window.TextEncoder; | ||||
| if (!TextEncoder) { | ||||
|     TextEncoder = TextEncodingUtf8.TextEncoder; | ||||
|  | @ -85,6 +86,12 @@ export default async function sendBugReport(bugReportEndpoint, opts) { | |||
|         body.append('label', opts.label); | ||||
|     } | ||||
| 
 | ||||
|     // add labs options
 | ||||
|     const enabledLabs = SettingsStore.getLabsFeatures().filter(SettingsStore.isFeatureEnabled); | ||||
|     if (enabledLabs.length) { | ||||
|         body.append('enabled_labs', enabledLabs.join(', ')); | ||||
|     } | ||||
| 
 | ||||
|     if (opts.sendLogs) { | ||||
|         progressCallback(_t("Collecting logs")); | ||||
|         const logs = await rageshake.getLogsForReport(); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Michael Telatynski
						Michael Telatynski