Missing global notification options. #264

Open
opened 2022-04-17 19:02:20 +00:00 by MyBeansAreBaked · 11 comments
MyBeansAreBaked commented 2022-04-17 19:02:20 +00:00 (Migrated from gitlab.com)

Description

Global notification options aren't avaliable.
image

For comparison, on (my same server) running synapse:
image

This behaviour is the same on element android, too.

Also, I don't know if it is related, but changing room specific notification settings doesn't seem to work every time.

This issue https://gitlab.com/famedly/conduit/-/issues/2 seems related, but dead.

System Configuration

Running the matrixconduit/matrix-conduit:latest docker image using podman (on alpine linux host), behind an nginx reverse proxy.

Database backend: sqlite

<!-- If you're requesting a new feature, that isn't part of this project yet, then please consider filling out a "Feature Request" instead! If you need a hand setting up your conduit server, feel free to ask for help in the Conduit Matrix Chat: https://matrix.to/#/#conduit:fachschaften.org. --> ### Description <!-- What did you do and what happened? Why is that bad? --> Global notification options aren't avaliable. ![image](/uploads/02034f0da9f7d6c8d7d63eb3d8ad244f/image.png) For comparison, on (my same server) running synapse: ![image](/uploads/104f6eae30327b83a425d331557f5a09/image.png) This behaviour is the same on element android, too. Also, I don't know if it is related, but changing room specific notification settings doesn't seem to work every time. This issue https://gitlab.com/famedly/conduit/-/issues/2 seems related, but dead. ### System Configuration <!-- Other data that might help us debug this issue, like os, conduit version, database backend --> Running the `matrixconduit/matrix-conduit:latest` docker image using podman (on alpine linux host), behind an nginx reverse proxy. Database backend: sqlite
M0dEx commented 2022-04-17 19:06:44 +00:00 (Migrated from gitlab.com)

marked this issue as related to #265

marked this issue as related to #265
M0dEx commented 2022-04-17 19:07:14 +00:00 (Migrated from gitlab.com)

assigned to @M0dEx

assigned to @M0dEx
M0dEx commented 2022-04-17 19:09:48 +00:00 (Migrated from gitlab.com)

As far as I can tell, all endpoints are implemented, there are no 404 responses.

I will take a look into how Element and Conduit initialize global notification rules.

As far as I can tell, all endpoints are implemented, there are no 404 responses. I will take a look into how Element and Conduit initialize global notification rules.
M0dEx commented 2022-04-17 20:07:39 +00:00 (Migrated from gitlab.com)

I think I have found the culprit!

Underride (global) rule IDs when using Synapse:

.m.rule.call
.m.rule.room_one_to_one
.m.rule.encrypted_room_one_to_one
.m.rule.message
.m.rule.encrypt

Underride (global) rule IDs when using Conduit:

.m.rules.call
.m.rules.room_one_to_one
.m.rules.encrypted_room_one_to_one
.m.rules.message
.m.rules.encrypt

Notice the .m.rule vs .m.rules.
This does not happen for rule IDs in the Override section.

As far as I can tell, these IDs are generated by ruma. I will open an issue on the ruma GitHub repository.

I think I have found the culprit! `Underride` (global) rule IDs when using Synapse: ``` .m.rule.call .m.rule.room_one_to_one .m.rule.encrypted_room_one_to_one .m.rule.message .m.rule.encrypt ``` `Underride` (global) rule IDs when using Conduit: ``` .m.rules.call .m.rules.room_one_to_one .m.rules.encrypted_room_one_to_one .m.rules.message .m.rules.encrypt ``` Notice the `.m.rule` vs `.m.rules`. This does not happen for rule IDs in the `Override` section. As far as I can tell, [these IDs are generated by ruma](https://github.com/ruma/ruma/blob/3ec82181581b6411d2fa96c196bc96052236d3a5/crates/ruma-common/src/push/predefined.rs#L196). I will open an issue on the ruma GitHub repository.
M0dEx commented 2022-04-17 20:14:48 +00:00 (Migrated from gitlab.com)
Ruma issue: ~~https://github.com/ruma/ruma/issues/1075~~ **Closed**
M0dEx commented 2022-04-17 20:25:39 +00:00 (Migrated from gitlab.com)

Ruma PR with fix: https://github.com/ruma/ruma/pull/1076 Merged

Ruma PR with fix: ~~https://github.com/ruma/ruma/pull/1076~~ **Merged**
M0dEx commented 2022-04-17 21:26:44 +00:00 (Migrated from gitlab.com)

Now we just need to:

  • update ruma to (at least) commit 09ac0aa3ac30beff5a435cbcfbda5fde3b5c1d0e
  • write a DB migration
Now we just need to: - [ ] update ruma to (at least) commit `09ac0aa3ac30beff5a435cbcfbda5fde3b5c1d0e` - [ ] write a DB migration
beziarum commented 2022-10-13 15:56:30 +00:00 (Migrated from gitlab.com)

I will try to fix this issue.
On this, I have one question : do you think it is best to update ruma to commit 09ac0a or to the latest release (version 0.7.4 on commit cee3d2f) ?

I will try to fix this issue. On this, I have one question : do you think it is best to update ruma to commit 09ac0a or to the latest release (version 0.7.4 on commit cee3d2f) ?
timokoesters commented 2022-10-13 15:57:28 +00:00 (Migrated from gitlab.com)

I updated ruma to the most recent commit yesterday, you should be fine :)

I updated ruma to the most recent commit yesterday, you should be fine :)
beziarum commented 2022-10-18 09:26:55 +00:00 (Migrated from gitlab.com)

mentioned in merge request !405

mentioned in merge request !405
timokoesters commented 2022-12-16 08:38:50 +00:00 (Migrated from gitlab.com)

mentioned in commit 9c0c74f547

mentioned in commit 9c0c74f547f5088de3e74cf1dc01f58538922e16
Sign in to join this conversation.
No labels
Android
CS::needs customer feedback
CS::needs follow up
CS::needs on prem installation
CS::waiting
Chrome
Design:: Ready
Design:: in progress
Design::UX
E2EE
Edge
Firefox
GDPR
Iteration 13 IM
Linux
MacOS
Need::Discussion
Need::Steps to reproduce
Need::Upstream fix
Needs:: Planning
Needs::Dev-Team
Needs::More information
Needs::Priority
Needs::Product
Needs::Refinement
Needs::Severity
Priority::1-Critical
Priority::2-Max
Priority::3-Impending
Priority::4-High
Priority::5-Medium
Priority::6-Low
Priority::7-None
Progress::Backlog
Progress::Review
Progress::Started
Progress::Testing
Progress::Triage
Progress::Waiting
Reporter::Sentry
Safari
Target::Community
Target::Customer
Target::Internal
Target::PoC
Target::Security
Team:Customer-Success
Team:Design
Team:Infrastructure
Team:Instant-Messaging
Team:Product
Team:Workflows
Type::Bug
Type::Design
Type::Documentation
Type::Feature
Type::Improvement
Type::Support
Type::Tests
Windows
blocked
blocked-by-spec
cla-signed
conduit
contribution::advanced
contribution::easy
contribution::help needed
from::review
iOS
p::ti-tenant
performance
product::triage
proposal
refactor
release-blocker
s: dart_openapi_codegen
s::Famedly-Patient
s::Org-Directory
s::Passport-Generator
s::Requeuest
s:CRM
s:Famedly-App
s:Famedly-Web
s:Fhiroxide
s:Fhiroxide-cli
s:Fhiroxide-client
s:Fhirs
s:Hedwig
s:LISA
s:Matrix-Dart-SDK
s:Role-Manager
s:Synapse
s:User-Directory
s:WFS-Matrix
s:Workflow Engine
s:dtls
s:famedly-error
s:fcm-shared-isolate
s:matrix-api-lite
s:multiple-tab-detector
s:native-imaging
severity::1
severity::2
severity::3
severity::4
technical-debt
voip
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Matthias/conduit#264
No description provided.