mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
PushRules settings: Create a dedicated rule for "Messages sent to group".
The default fallback rule cannot be used because it matches with too much events.
This commit is contained in:
parent
ae14210763
commit
bdcf683942
@ -96,10 +96,13 @@ var VectorPushRulesDefinitions = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// Messages just sent to a group chat room
|
// Messages just sent to a group chat room
|
||||||
"im.vector.rule.fallback": {
|
"im.vector.rule.room_group": {
|
||||||
description: "Messages sent to group",
|
description: "Messages sent to group",
|
||||||
conditions: [],
|
conditions: [{
|
||||||
hsDefaultRuleId: ".m.rule.fallback",
|
"is": ">2",
|
||||||
|
"kind": "room_member_count"
|
||||||
|
}],
|
||||||
|
hsDefaultRuleId: undefined, // Matrix does not define a default hs push rule for group
|
||||||
hsDefaultRuleVectorState: PushRuleVectorState.on,
|
hsDefaultRuleVectorState: PushRuleVectorState.on,
|
||||||
vectorStateToActions: {
|
vectorStateToActions: {
|
||||||
on: [
|
on: [
|
||||||
@ -736,7 +739,7 @@ module.exports = React.createClass({
|
|||||||
'im.vector.rule.contains_display_name',
|
'im.vector.rule.contains_display_name',
|
||||||
'_keywords',
|
'_keywords',
|
||||||
'im.vector.rule.room_one_to_one',
|
'im.vector.rule.room_one_to_one',
|
||||||
'im.vector.rule.fallback',
|
'im.vector.rule.room_group',
|
||||||
'im.vector.rule.invite_for_me',
|
'im.vector.rule.invite_for_me',
|
||||||
'im.vector.rule.member_event',
|
'im.vector.rule.member_event',
|
||||||
'im.vector.rule.call'
|
'im.vector.rule.call'
|
||||||
|
Loading…
Reference in New Issue
Block a user