Currently if we fetch messages from an encrypted room, in Matrix, we can only read messages that were written by the same account that Matrix’s node is using.
This is an example of what I receive when I pull new messages:
[
{
"content": {
"algorithm": "m.megolm.v1.aes-sha2",
"ciphertext": "AwgAEqACq9exms2PCV41geyo1iRlNIUK0EKWwU6+a3KOLDXr0AYajjuMZXleHvqcoEbrOwl5BwMTvfX6R5sW/2+9q5MRF7ohMMQi8dae+7gv01IYmvAepjHWb96zIb+pkc0yCwSsXWwyB6wWr64NOFwUZKpKMSe/syr/VSxZaySlZg8vmwp7QJB0uo2JXjXDZqocy/QxonGKLZNgb2CK1nVcODDCmHnDIs8Dr0h3+7O5Plpyyv5m9yaZePKSyvYI/hyBXU8Mebg5Xabx5dH8p5DCVEbltkXn2UIxXDlGXaoSng3yrSZ8EPPj+6PaCXv1aBfTtvah4GBqMgfb09TYlSTi78Beuy82cw6AAeFXnN6+em4e7gldSZItoVt0dn4uif6YygOqU/FU4BtE8HrWq0WEFX/W9s2zyAFWCgCSU4QH6W7xHaiKue7EEI21DeZR94tN47GlgK1Rlv6V9KvQjolLcBHdy42HPiuFAz0P",
"device_id": "VXFYWERWAA",
"sender_key": "nSBXUAkLLqjMChu7spjfXsIf8voER7jJS6j100JvSgk",
"session_id": "K4o7o8mADB37Y5UyR/asm8j7AbZb2TQOTe5Z5zHJ1r0"
},
"origin_server_ts": 1617389193718,
"room_id": "!uJBFGDlXhmZkHOhKaL:matrix.org",
"sender": "@couto:matrix.org",
"type": "m.room.encrypted",
"unsigned": {
"age": 455733
},
"event_id": "$Ur0AaJFYIS5X5ZPvnBiHxvekTjZ0Q4MPYWGpAEizlZI",
"user_id": "@couto:matrix.org",
"age": 455733
},
{
"content": {
"body": "“It's ok if you disagree with me, I can't force you to be right.”",
"msgtype": "m.text"
},
"origin_server_ts": 1617382811648,
"room_id": "!uJBFGDlXhmZkHOhKaL:matrix.org",
"sender": "@brigitte.bardot:matrix.org",
"type": "m.room.message",
"unsigned": {
"age": 6837803
},
"event_id": "$bSsmb9H3VjJI_8Ooi-ZQy81G6GvmpLLmD4JLeSLP9Sg",
"user_id": "@brigitte.bardot:matrix.org",
"age": 6837803
}
]
The first message was sent by me, from Riot, with my personal account. The second message was previously sent by N8N’s bot account. Both accounts have verified keys between themselves (I don’t think this is relevant, but just in case)
Is there a solution for this?
P.S.: It would be nice to also have matrix as a trigger.