mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Refer to the knock push rule by its published MSC number (MSC4506)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uk8aPxHn3BHCe52L226jdG
This commit is contained in:
+1
-1
@@ -301,7 +301,7 @@ class DefaultNotifiableEventResolver(
|
|||||||
throw NotificationResolverException.EventFilteredOut
|
throw NotificationResolverException.EventFilteredOut
|
||||||
}
|
}
|
||||||
is NotificationContent.StateEvent.RoomMemberContent -> {
|
is NotificationContent.StateEvent.RoomMemberContent -> {
|
||||||
// MSCxxxx: the homeserver pushes knocks to users who can act on them.
|
// MSC4506: the homeserver pushes knocks to users who can act on them.
|
||||||
if (content.membershipState == RoomMembershipState.KNOCK) {
|
if (content.membershipState == RoomMembershipState.KNOCK) {
|
||||||
val notifiableMessageEvent = buildNotifiableMessageEvent(
|
val notifiableMessageEvent = buildNotifiableMessageEvent(
|
||||||
sessionId = userId,
|
sessionId = userId,
|
||||||
|
|||||||
@@ -6,6 +6,6 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<resources>
|
<resources>
|
||||||
<!-- Body of the notification shown to users who can act on a knock (MSCxxxx knock push rule). -->
|
<!-- Body of the notification shown to users who can act on a knock (MSC4506 knock push rule). -->
|
||||||
<string name="notification_knock_request_body">"Requested to join"</string>
|
<string name="notification_knock_request_body">"Requested to join"</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user