Remove some debug messages
This commit is contained in:
parent
acdef62880
commit
76c04481bc
3 changed files with 1 additions and 8 deletions
|
|
@ -20,7 +20,7 @@ export default {
|
||||||
},
|
},
|
||||||
errorCaptured(err, ignoredvm, ignoredinfo) {
|
errorCaptured(err, ignoredvm, ignoredinfo) {
|
||||||
this.err = err;
|
this.err = err;
|
||||||
console.error("IGNORE", err, ignoredvm, ignoredinfo);
|
console.error("Render error", err, ignoredvm, ignoredinfo);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -56,8 +56,6 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.error("Mounted outgoing image, load thumbnail!");
|
|
||||||
|
|
||||||
const info = this.event.getContent().info;
|
const info = this.event.getContent().info;
|
||||||
// JPEGs use cover, PNG and GIF ect contain. This is because PNG and GIF are expected to
|
// JPEGs use cover, PNG and GIF ect contain. This is because PNG and GIF are expected to
|
||||||
// be stickers and small emoji type things.
|
// be stickers and small emoji type things.
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,6 @@ class Util {
|
||||||
}
|
}
|
||||||
|
|
||||||
getAttachment(matrixClient, useAuthedMedia, event, progressCallback, asBlob = false, abortController = undefined) {
|
getAttachment(matrixClient, useAuthedMedia, event, progressCallback, asBlob = false, abortController = undefined) {
|
||||||
console.error("GET ATTACHMENT FOR EVENT", event.getId());
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const content = event.getContent();
|
const content = event.getContent();
|
||||||
var url = null;
|
var url = null;
|
||||||
|
|
@ -139,7 +138,6 @@ class Util {
|
||||||
}
|
}
|
||||||
|
|
||||||
async getThumbnail(matrixClient, useAuthedMedia, event, config, ignoredw, ignoredh) {
|
async getThumbnail(matrixClient, useAuthedMedia, event, config, ignoredw, ignoredh) {
|
||||||
console.error("GET THUMB FOR EVENT", event.getId());
|
|
||||||
const content = event.getContent();
|
const content = event.getContent();
|
||||||
var url = null;
|
var url = null;
|
||||||
var mime = "image/png";
|
var mime = "image/png";
|
||||||
|
|
@ -374,7 +372,6 @@ class Util {
|
||||||
|
|
||||||
// Calculate sha256
|
// Calculate sha256
|
||||||
let hash = await crypto.subtle.digest("SHA-256", encryptedBytes);
|
let hash = await crypto.subtle.digest("SHA-256", encryptedBytes);
|
||||||
console.error("HASH GENERATED", Buffer.from(hash));
|
|
||||||
|
|
||||||
const jwk = {
|
const jwk = {
|
||||||
kty: "oct",
|
kty: "oct",
|
||||||
|
|
@ -493,7 +490,6 @@ class Util {
|
||||||
if (thumbnailData) {
|
if (thumbnailData) {
|
||||||
messageContent.thumbnail_info = thumbnailInfo;
|
messageContent.thumbnail_info = thumbnailInfo;
|
||||||
if (useEncryption) {
|
if (useEncryption) {
|
||||||
console.error("Encrypt thumb thumb");
|
|
||||||
const [encryptedBytes, encryptedFile] = await this.encryptFileAndGenerateInfo(thumbnailData, file.type);
|
const [encryptedBytes, encryptedFile] = await this.encryptFileAndGenerateInfo(thumbnailData, file.type);
|
||||||
messageContent.info.thumbnail_file = encryptedFile;
|
messageContent.info.thumbnail_file = encryptedFile;
|
||||||
thumbnailData = encryptedBytes;
|
thumbnailData = encryptedBytes;
|
||||||
|
|
@ -604,7 +600,6 @@ class Util {
|
||||||
// Have we changed our local view mode of this room?
|
// Have we changed our local view mode of this room?
|
||||||
const tags = room.tags;
|
const tags = room.tags;
|
||||||
if (tags && tags["ui_options"]) {
|
if (tags && tags["ui_options"]) {
|
||||||
console.error("We have a tag!");
|
|
||||||
if (tags["ui_options"]["voice_mode"] === 1) {
|
if (tags["ui_options"]["voice_mode"] === 1) {
|
||||||
return ROOM_TYPE_VOICE_MODE;
|
return ROOM_TYPE_VOICE_MODE;
|
||||||
} else if (tags["ui_options"]["file_mode"] === 1) {
|
} else if (tags["ui_options"]["file_mode"] === 1) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue