Put rageshake request ID in title of debug log submission
This commit is contained in:
		
					parent
					
						
							
								b92acd4822
							
						
					
				
			
			
				commit
				
					
						eab8b1d095
					
				
			
		
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -72,10 +72,15 @@ export function useSubmitRageshake(): {
 | 
			
		|||
          touchInput = String(window.matchMedia("(pointer: coarse)").matches);
 | 
			
		||||
        } catch (e) {}
 | 
			
		||||
 | 
			
		||||
        let description = opts.rageshakeRequestId
 | 
			
		||||
          ? `Rageshake ${opts.rageshakeRequestId}`
 | 
			
		||||
          : "";
 | 
			
		||||
        if (opts.description) description += `: ${opts.description}`;
 | 
			
		||||
 | 
			
		||||
        const body = new FormData();
 | 
			
		||||
        body.append(
 | 
			
		||||
          "text",
 | 
			
		||||
          opts.description || "User did not supply any additional text."
 | 
			
		||||
          description ?? "User did not supply any additional text."
 | 
			
		||||
        );
 | 
			
		||||
        body.append("app", "matrix-video-chat");
 | 
			
		||||
        body.append(
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue