ensure pmp is always updated on event decryption

This commit is contained in:
7w1 committed 2026-03-24 18:55:16 -05:00
1 parent 3aee3054a5
commit 2b197aa901
1 file changed
+5
@@ -384,6 +384,11 @@ function MessageInternal(
useEffect(() => {
const onUpdate = () => setContentVersion((v) => v + 1);
if (mEvent.getClearContent()) {
setContentVersion((v) => (v === 0 ? 1 : v));
}
mEvent.on(MatrixEventEvent.Decrypted, onUpdate);
mEvent.on(MatrixEventEvent.Replaced, onUpdate);
return () => {