Mark Haines
05e479a76c
Use then() chaining rather than manual callbacks
2016-03-16 10:59:40 +00:00
Mark Haines
31915db6f6
Remove trailing whitespace
2016-03-15 18:38:24 +00:00
Mark Haines
eb01cb9cba
Merge pull request #1037 from vector-im/markjh/change_push_actions
...
Update the actions of default rules instead of overriding.
2016-03-15 18:10:04 +00:00
Mark Haines
9b85d88036
s/somme/some/
2016-03-15 15:23:18 +00:00
Mark Haines
3224a4e49e
Add helper functions for decoding and encoding lists of push actions
2016-03-15 11:26:32 +00:00
Mark Haines
8b1444c954
Port the legacy im.vector rules to the new format on startup
2016-03-15 10:49:10 +00:00
Richard van der Hoff
e777db3fc4
Add setting for audio notifications
...
Expose the enableAudioNotifications setting in the user settings panel.
2016-03-10 11:01:29 +00:00
Mark Haines
3b2d0a6c01
Fix up reading the push rules
2016-02-29 16:56:33 +00:00
Mark Haines
731d94eea4
Update the actions of default rules instead of overriding.
...
The Matrix CS API, and synapse now supports setting the actions for default
rules. Doing that makes managing the rules much simpler from a vector
persepctive since the ON/LOUD/OFF toggle buttons can be implemented by
setting the actions and enabling/disabling the default rules rather than
overidding them.
Overriding the default rules was difficult because it was not possible
to intermingle the evaluation of user-specified rules with the default
rules. So even though you could add a rule with the same conditions as a
default rule, it would evaluate before *all* the other default rules.
Also creating new rules under a im.vector namespace creates challenges
if we want vector to cooperate with other matrix clients that want to
provide a similar set of toggle switches for the push rules.
2016-02-26 20:51:16 +00:00
David Baker
e11ae99a9f
Add vector rules with the appropriate kind, otherwise the room_message rule takes precedence over content / display name rules etc and prevents bings.
2016-01-22 14:12:29 +00:00
manuroe
ce45f0b1e6
Push settings: Use a dont_notify rule when 1:1 or group chat rooms are set to OFF
2016-01-22 09:30:31 +01:00
manuroe
f3064a2994
Put back removing of "When people join or leave a room" settings push rule
2016-01-21 16:37:17 +01:00
manuroe
029cf754ee
Added notif settings for "Messages sent by bot" ( https://github.com/vector-im/vector-web/issues/692 )
...
In order to do that, the rules definitions have been update to support "dont_notify" hs default push rules
2016-01-21 16:16:44 +01:00
David Baker
b913e72735
Remove member event rule as per SYN-607
2016-01-21 12:01:28 +00:00
manuroe
888fde0f53
Fixed call push notifications settings that always stayed OFF
2016-01-20 17:01:09 +01:00
Matthew Hodgson
a775086e81
wording from amandine
2016-01-18 19:57:17 +00:00
manuroe
6182c983ab
PushRules settings: Applied review remarks (2/2)
2016-01-18 18:24:53 +01:00
manuroe
7c0fffa79b
PushRules settings: Applied easy review remarks
2016-01-18 18:07:33 +01:00
manuroe
bdcf683942
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.
2016-01-18 16:41:48 +01:00
manuroe
ae14210763
PushRules settings: Put keywords in the right position
2016-01-18 16:31:18 +01:00
manuroe
830160f074
PushRules settings: Enabled all radio buttons of the table.
...
Each rule is described in the code so that if the server does not have it in its default rules or if the user wants to use actions different from the hs one, the code will create a new rule that will override the hs one.
2016-01-18 16:24:06 +01:00
manuroe
d7ffe70d44
PushRules settings: Applied Amandine's review comments
2016-01-15 17:28:57 +01:00
manuroe
cb8b052dc0
PushRules settings: Show unmanaged rules into an "advanced section"
2016-01-15 16:45:27 +01:00
manuroe
2dd2acd4e0
PushRules settings: BF adding a keyword when the keywords rule is OFF
2016-01-15 14:28:50 +01:00
manuroe
c3469b5b51
PushRules settings: coding: separate UI and data management
2016-01-15 11:33:54 +01:00
manuroe
7412fc7f97
PushRules settings: changed wordings
2016-01-15 10:51:42 +01:00
manuroe
378f4bb85c
PushRules settings: Display keywords in alphabetical order
2016-01-14 11:15:59 +01:00
manuroe
0577edb055
PushRules settings: Added master push rule
2016-01-14 11:03:51 +01:00
manuroe
629883731e
PushRules settings: BF when adding a new keyword with the keywords rule in Off
2016-01-13 17:56:59 +01:00
manuroe
0475bcd9de
PushRules settings: BF when changing state of the keywords rule with such a sequence: on -> off -> loud.
2016-01-13 17:10:26 +01:00
manuroe
ac87830e4e
PushRules settings: Applied new wordings: On, Loud, Off
2016-01-13 16:48:22 +01:00
manuroe
7fc5ab3c6e
PushRules settings: Use the new TextInputDialog to display keywords list. We earn the focus at the end of the keywords list and the management of enter and esc keys
2016-01-13 16:36:57 +01:00
manuroe
c4cb37606b
PushRules settings: Added sanity checks on new keywords
2016-01-13 15:47:00 +01:00
manuroe
e5b7a47fee
PushRules settings: if a newly typed keyword was part of a push rule not managed by the Vector UI, delete the rule and create it compliant with Vector parameters
2016-01-13 12:00:04 +01:00
manuroe
1c03c208e1
PushRules settings: update keywords list hs side
2016-01-13 11:46:13 +01:00
manuroe
10d3076d6b
PushRules settings: Display keywords modal dialog
2016-01-13 09:11:56 +01:00
manuroe
9fb8c9f67a
PushRules settings: Use a workaround for SYN-590 (Push rule update fails)
2016-01-12 17:33:57 +01:00
manuroe
b9080c770d
PushRules settings: Fixed triage of matrix content rules into the unique Vector rule
2016-01-12 16:46:27 +01:00
manuroe
7f95362dd2
PushRules settings: Translate matrix per-word rules into the global Vector rule for a list of keywords
2016-01-12 15:12:58 +01:00
manuroe
6d510db2db
PPushRules settings: Fixed React warnings
2016-01-11 17:32:37 +01:00
manuroe
ee13dd7b6c
PushRules settings: Added a dedicated component to display them
2016-01-11 17:24:04 +01:00