Skip to content

Commit 97bf8f3

Browse files
authored
feat: set sound on for messages (finogeeks#104)
1 parent 8f19aec commit 97bf8f3

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

pushapi/routing/baserules.go

+17-1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,22 @@ var GetAction5 = func() []interface{} {
115115
return actions
116116
}
117117

118+
var GetAction6 = func() []interface{} {
119+
var actions []interface{}
120+
actions = append(actions, "notify")
121+
tweaks := []pushapitypes.Tweak{
122+
{
123+
SetTweak: "sound",
124+
Value: "default",
125+
},
126+
}
127+
128+
for _, v := range tweaks {
129+
actions = append(actions, v)
130+
}
131+
return actions
132+
}
133+
118134
var BaseRuleIds = func() map[string]string {
119135
rules := map[string]string{
120136
"global/override/.m.rule.master": "override",
@@ -284,7 +300,7 @@ var BaseUnderRideRules = func() []pushapitypes.PushRule {
284300
Pattern: "m.room.message",
285301
},
286302
},
287-
Actions: GetAction5(),
303+
Actions: GetAction6(),
288304
},
289305
{
290306
RuleId: "global/underride/.m.rule.encrypted",

0 commit comments

Comments
 (0)