Created
November 3, 2021 02:47
-
-
Save anonfloppa/72ce1edd7feda1812a8f00365918a0be to your computer and use it in GitHub Desktop.
query to display all unencrypted messages from one user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select event_json.json::json->'content'->>'body' as message, | |
events.room_id, | |
room_stats_state.name, | |
events.sender | |
from events | |
left outer join event_json on | |
events.event_id=event_json.event_id | |
left outer join room_stats_state on | |
room_stats_state.room_id=events.room_id | |
where event_json.json::json->'content'->>'body'<>'' and events.sender='@ACCOUNT_NAME:SERVER.DOM'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment