You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
Add tombstone rule as a default rule in support of MSC1930
Part of https://github.com/vector-im/riot-web/issues/8447 See also https://github.com/matrix-org/matrix-doc/pull/1930
This commit is contained in:
@@ -27,6 +27,26 @@ const RULEKINDS_IN_ORDER = ['override', 'content', 'room', 'sender', 'underride'
|
|||||||
// defaults apply under no other circumstances to avoid confusing the client with server
|
// defaults apply under no other circumstances to avoid confusing the client with server
|
||||||
// state.
|
// state.
|
||||||
const DEFAULT_OVERRIDE_RULES = [
|
const DEFAULT_OVERRIDE_RULES = [
|
||||||
|
{
|
||||||
|
// For homeservers which don't support MSC1930 yet
|
||||||
|
rule_id: ".m.rule.tombstone",
|
||||||
|
default: true,
|
||||||
|
enabled: true,
|
||||||
|
conditions: [
|
||||||
|
{
|
||||||
|
kind: "event_match",
|
||||||
|
key: "type",
|
||||||
|
pattern: "m.room.tombstone",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
actions: [
|
||||||
|
"notify",
|
||||||
|
{
|
||||||
|
set_tweak: "highlight",
|
||||||
|
value: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user