Browse Source

remove file upload emotes

master
f0x 2 years ago
parent
commit
6f8a2d5c20
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      lib/models/IrcAction.js
  2. +1
    -1
      package.json

+ 3
- 3
lib/models/IrcAction.js View File

@@ -28,14 +28,14 @@ IrcAction.fromMatrixAction = function(matrixAction) {
return new IrcAction(matrixAction.type, matrixAction.text, matrixAction.ts);
case "image":
return new IrcAction(
"emote", "uploaded an image: " + matrixAction.text, matrixAction.ts
"message", matrixAction.text, matrixAction.ts
);
case "video":
return new IrcAction(
"emote", "uploaded a video: " + matrixAction.text, matrixAction.ts
"message", matrixAction.text, matrixAction.ts
);
case "file":
return new IrcAction("emote", "posted a file: " + matrixAction.text, matrixAction.ts);
return new IrcAction("message", matrixAction.text, matrixAction.ts);
case "topic":
return new IrcAction(matrixAction.type, matrixAction.text, matrixAction.ts);
default:


+ 1
- 1
package.json View File

@@ -16,7 +16,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/matrix-org/matrix-appservice-irc.git"
"url": "https://git.lain.haus/f0x/matrix-appservice-irc.git"
},
"author": "",
"license": "Apache-2.0",


Loading…
Cancel
Save