mirror of
				https://github.com/cinnyapp/cinny.git
				synced 2025-11-04 06:20:28 +03:00 
			
		
		
		
	Bump matrix-js-sdk from 20.1.0 to 21.0.1 (#959)
* Bump matrix-js-sdk from 20.1.0 to 21.0.0 Bumps [matrix-js-sdk](https://github.com/matrix-org/matrix-js-sdk) from 20.1.0 to 21.0.0. - [Release notes](https://github.com/matrix-org/matrix-js-sdk/releases) - [Changelog](https://github.com/matrix-org/matrix-js-sdk/blob/develop/CHANGELOG.md) - [Commits](https://github.com/matrix-org/matrix-js-sdk/compare/v20.1.0...v21.0.0) --- updated-dependencies: - dependency-name: matrix-js-sdk dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump matrix-js-sdk from 20.1.0 to 21.0.1 Bumps [matrix-js-sdk](https://github.com/matrix-org/matrix-js-sdk) from 20.1.0 to 21.0.1. - [Release notes](https://github.com/matrix-org/matrix-js-sdk/releases) - [Changelog](https://github.com/matrix-org/matrix-js-sdk/blob/develop/CHANGELOG.md) - [Commits](https://github.com/matrix-org/matrix-js-sdk/compare/v20.1.0...v21.0.1) --- updated-dependencies: - dependency-name: matrix-js-sdk dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Fix upload content * Change min supported node Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ajay Bura <32841439+ajbura@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									856e616247
								
							
						
					
					
						commit
						62e0821be2
					
				
					 5 changed files with 45 additions and 645 deletions
				
			
		
							
								
								
									
										677
									
								
								package-lock.json
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										677
									
								
								package-lock.json
									
										
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							| 
						 | 
				
			
			@ -4,8 +4,7 @@
 | 
			
		|||
  "description": "Yet another matrix client",
 | 
			
		||||
  "main": "index.js",
 | 
			
		||||
  "engines": {
 | 
			
		||||
    "npm": ">=6.14.8",
 | 
			
		||||
    "node": ">=14.15.0"
 | 
			
		||||
    "node": ">=16.0.0"
 | 
			
		||||
  },
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "start": "webpack serve --config ./webpack.dev.js --open",
 | 
			
		||||
| 
						 | 
				
			
			@ -32,7 +31,7 @@
 | 
			
		|||
    "katex": "0.16.3",
 | 
			
		||||
    "linkify-html": "4.0.2",
 | 
			
		||||
    "linkifyjs": "4.0.2",
 | 
			
		||||
    "matrix-js-sdk": "20.1.0",
 | 
			
		||||
    "matrix-js-sdk": "21.0.1",
 | 
			
		||||
    "prop-types": "15.8.1",
 | 
			
		||||
    "react": "17.0.2",
 | 
			
		||||
    "react-autosize-textarea": "7.1.0",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -27,9 +27,7 @@ function ImagePackUpload({ onUpload }) {
 | 
			
		|||
 | 
			
		||||
    setProgress(true);
 | 
			
		||||
    const image = await scaleDownImage(imgFile, 512, 512);
 | 
			
		||||
    const url = await mx.uploadContent(image, {
 | 
			
		||||
      onlyContentUri: true,
 | 
			
		||||
    });
 | 
			
		||||
    const { content_uri: url } = await mx.uploadContent(image);
 | 
			
		||||
 | 
			
		||||
    onUpload(shortcode, url);
 | 
			
		||||
    setProgress(false);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -22,7 +22,7 @@ function ImageUpload({
 | 
			
		|||
    const file = e.target.files.item(0);
 | 
			
		||||
    if (file === null) return;
 | 
			
		||||
    try {
 | 
			
		||||
      const uPromise = initMatrix.matrixClient.uploadContent(file, { onlyContentUri: false });
 | 
			
		||||
      const uPromise = initMatrix.matrixClient.uploadContent(file);
 | 
			
		||||
      setUploadPromise(uPromise);
 | 
			
		||||
 | 
			
		||||
      const res = await uPromise;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -395,7 +395,7 @@ class RoomsInput extends EventEmitter {
 | 
			
		|||
    input.attachment.uploadingPromise = uploadingPromise;
 | 
			
		||||
    this.roomIdToInput.set(roomId, input);
 | 
			
		||||
 | 
			
		||||
    const url = await uploadingPromise;
 | 
			
		||||
    const { content_uri: url } = await uploadingPromise;
 | 
			
		||||
 | 
			
		||||
    delete input.attachment.uploadingPromise;
 | 
			
		||||
    this.roomIdToInput.set(roomId, input);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue