|7 Apr 2020|
I think this might be the right place to ask and I scrolled up a bunch of messages but didn't really find what I was looking for. So I have a homeserver and I want a dummy user, call it a bot, whatever, to send encrypted messages. I have googled this but couldn't find a snippet that would help me understand how to enable this feature. So when I look at the nio documentation over at matrix-nio.readthedocs.io I see that the
That does not really happen. I guessed there was more to this so went digging in the documentation and while I found the Encryption section, I could not really get how to implement it.
My setup would consist of a more or less basic Synapse installation and then use nio to make the dummy user do things.
First I would just manualy join a private chat with both users and send an encrypted "hello"?
Can you maybe detail this for me or provide an explanatory snippet of code?
|09:02:50||andrasdenes||tl;dr i'm asking for your help so read only if you have a minute :D|
|09:07:46||poljar|| you'll need to use the |
|09:10:45||anoa||poljar, huh, so storing sync tokens effectively doesn't work unless you have the e2e deps installed?|
|09:12:22||anoa||Ah, okie dokie. That is kinda sucky but thanks for letting me know :)|
poljar: I tried a few different things. But I think this is the most reasonable(?):
I ran 2 different proccesses in 2 different terminals, one of them being
and the other ending in
And I still had no luck.
Essentially this is how I wish to send the message. Like run the sync_forever and then run this whenever I want a message sent.
left that in code tags oops
|12:37:40||poljar||you can't run those in separate processes since they won't share memory/client state, you can create a separate task like it's described here https://docs.python.org/3/library/asyncio-task.html#creating-tasks|
|12:38:39||poljar|| you run |
|12:38:55||poljar||that way you'll be sure that you don't try to send messages before a sync is done|
|8 Apr 2020|
|01:40:53||@sparky:matrix.possumlodge.me left the room.|
|03:20:27||Phil joined the room.|
|03:22:18||Phil||Hi all, is there some documentation somewhere I can read to get my dev environment set up to contribute properly? Currently reading the .traivs.yml, Makefile, and guessing and I can't say I'm a big fan 🥴|
|06:55:38||poljar||depends on how you want to set it up, some distros package all the dependencies so you could go the distro package way, using a virtual environment is a possibility or just installing all the deps for your user is also possible|
|07:08:43||Phil||hmmm looks like our timezones don't match up great; I'm heading to bed pretty quick but I'm working on read receipt events. I think I ended up figuring out how to get it all installed in a virtualenv, except olm|
|07:11:09||poljar||olm requires the C lib, the dynamic lib as well as development headers|
|07:12:00||Phil||Oh yeah sorry, that wasn't clear. I installed olm outside the venv|
|07:12:48||Phil||I'll probably have some more questions for you about testing tomorrow, gotta head to sleep pretty quick 😴|
|12:48:01||rda joined the room.|
|9 Apr 2020|
|06:00:26||Gabriel joined the room.|
|14:49:29||tostiman joined the room.|
|19:35:41||dhmf (Old) changed their display name from dhmf to dhmf (Old).|
|19:36:04||dhmf (Old) invited dhmf.|
|20:47:33||Phil changed their profile picture.|
|20:58:23||Phil|| poljar: Maybe this is better for a PR convo but I'll start here and we can always move to GitHub later; for an implementation of ReadReceiptEvents I've added a test to |
|10 Apr 2020|
|01:46:03||Sonri joined the room.|
|01:46:26||Sonri left the room.|
|06:28:04||poljar||once we have a state store people will probably expect read receipts to be restored when they restore the client, so it probably makes sense to track them in the room|