forked from matrix-org/matrix-appservice-irc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEventFeatures.ts
More file actions
48 lines (46 loc) · 1.22 KB
/
Copy pathEventFeatures.ts
File metadata and controls
48 lines (46 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { MSC3968Content } from "matrix-appservice-bridge";
export const defaultEventFeatures: MSC3968Content = {
keys: {
"m.in_reply_to": -50, // replies
"m.new_content": -100, // edits
"m.relates_to": -1, // Other relations are unlikely to be bridged gracefully
// encrypted files:
"file": -100,
"thumbnail_file": -100
},
// discourage HTML elements with no counterpart on IRC:
html_elements_default: -1,
html_elements: {
"a": 0,
"b": 0,
"code": 0,
"div": 0,
"font": 0,
"p": 0,
"pre": 0,
"i": 0,
"u": 0,
"span": 0,
"strong": 0,
"em": 0,
"strike": 0
},
// forbid text messages which are neither text nor HTML (eg. `m.location`),
// and encourage text messages over media (which IRC users may prefer not to display inline):
mimetypes_default: -100,
mimetypes: {
"text/plain": 0,
"text/html": 0
},
msgtypes_default: -100,
msgtypes: {
"m.audio": 0,
"m.emote": 100,
"m.file": 0,
"m.image": 0,
"m.notice": 100,
"m.text": 100,
"m.video": 0,
"m.server_notice": 0
},
}