mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00
Merge pull request #94 from andybalaam/patch-1
Fix spelling of received
This commit is contained in:
commit
b34130d7ea
@ -178,7 +178,7 @@ export class GenericHookConnection extends BaseConnection implements IConnection
|
|||||||
if (typeof data.text === "string") {
|
if (typeof data.text === "string") {
|
||||||
msg += data.text;
|
msg += data.text;
|
||||||
} else {
|
} else {
|
||||||
msg += `Recieved webhook data:\n\n\`\`\`${JSON.stringify(data, undefined, 2)}\`\`\``;
|
msg += `Received webhook data:\n\n\`\`\`${JSON.stringify(data, undefined, 2)}\`\`\``;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Transform Slackdown into markdown.
|
// TODO: Transform Slackdown into markdown.
|
||||||
@ -199,12 +199,12 @@ export class GenericHookConnection extends BaseConnection implements IConnection
|
|||||||
filename: `generic-hook.${this.hookId}`,
|
filename: `generic-hook.${this.hookId}`,
|
||||||
});
|
});
|
||||||
if (context.result) {
|
if (context.result) {
|
||||||
content = `Recieved webhook: ${context.result}`;
|
content = `Received webhook: ${context.result}`;
|
||||||
} else {
|
} else {
|
||||||
content = `No content`;
|
content = `No content`;
|
||||||
}
|
}
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
content = `Webhook recieved but failed to process via transformation function`;
|
content = `Webhook received but failed to process via transformation function`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -271,4 +271,4 @@ export class GenericHookConnection extends BaseConnection implements IConnection
|
|||||||
public toString() {
|
public toString() {
|
||||||
return `GenericHookConnection ${this.hookId}`;
|
return `GenericHookConnection ${this.hookId}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user