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);
 | 
					          touchInput = String(window.matchMedia("(pointer: coarse)").matches);
 | 
				
			||||||
        } catch (e) {}
 | 
					        } catch (e) {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        let description = opts.rageshakeRequestId
 | 
				
			||||||
 | 
					          ? `Rageshake ${opts.rageshakeRequestId}`
 | 
				
			||||||
 | 
					          : "";
 | 
				
			||||||
 | 
					        if (opts.description) description += `: ${opts.description}`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        const body = new FormData();
 | 
					        const body = new FormData();
 | 
				
			||||||
        body.append(
 | 
					        body.append(
 | 
				
			||||||
          "text",
 | 
					          "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("app", "matrix-video-chat");
 | 
				
			||||||
        body.append(
 | 
					        body.append(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue