Page MenuHomePhorge

Fix undecrytable events not generating notifications
ClosedPublic

Authored by tusooa on Mon, Jul 20, 8:22 PM.

Details

Summary

We used to use the event type/content in raw() when processing push rules, which will lead to them trying to match our "unable to decrypt" private events. This is fixed by using cleartext part for events that are not yet decrypted or unable to decrypt.

Type: fix

Adapted from output of OpenCode (DeepSeek V4 Pro). tusooa reviewed the code and takes full responsibility.

Test Plan

Send an undecryptable event (e.g. first setting the trust level of the target device to Blocked) to kazv and verify you have received the notification (which matches the "m.room.encrypted" rule).

Diff Detail

Repository
rL libkazv
Lint
Lint Not Applicable
Unit
Tests Not Applicable