!JiiOHXrIUCtcOJsZCa:matrix.org

nio

197 Members
The nio matrix python library | Latest release 0.15.2 https://pypi.org/project/matrix-nio/ | Documentation: https://matrix-nio.readthedocs.io/en/stable/110 Servers

Load older messages


SenderMessageTime
29 Nov 2020
@slg:converser.euslg
In reply to @poljar:matrix.org
you can set the database name explicitly to work around this

Since it's hard for me to change the db file name, I'm modifying this line to replace ':' for '@'. It's a temporary workaround until we have a new crypto layer.

12:03:16
@miruka:privacytools.iomiruka*

Wasn't there a PR to make filenames compatible?

14:19:17
@miruka:privacytools.iomiruka*

Replacing : isn't enough, these characters will cause problems too on NTFS: < > " / \ | ? *

14:20:02
@miruka:privacytools.iomiruka*

and regretably, matrix used to allow these in user IDs at some point

14:20:31
@tulir:maunium.nettulirmatrix federation still allows non-printable ascii in user IDs :D14:22:15
@poljar:matrix.orgpoljar the PR was for the nio.Api definitions so your request URL doesn't get confused because of /, this is for the file name of the crypto database 14:35:48
@testuser.:matrix.orgtestuser.Is it possible to reply to a message with it's event ID?14:38:53
@miruka:privacytools.iomiruka*
In reply to @testuser.:matrix.org
Is it possible to reply to a message with it's event ID?

yes, but there's no builtin way to do it with nio, you have to construct a content dict yourself

14:46:03
@testuser.:matrix.orgtestuser.Could you give me an example ?14:46:39
@miruka:privacytools.iomiruka*

the function to send text messages in my client handles this: https://github.com/mirukana/mirage/blob/v0.6.4/src/backend/matrix_client.py#L537 (ctrl+f "reply")

14:48:06
@testuser.:matrix.orgtestuser. Thanks, was just cloning that repo to grep through it :P 14:48:58
30 Nov 2020
@testuser.:matrix.orgtestuser.Can you get an event from an event id? I need to get the content of a message event using it's ID14:41:55
@poljar:matrix.orgpoljaryes https://matrix-nio.readthedocs.io/en/latest/nio.html#nio.AsyncClient.room_get_event14:44:56
@testuser.:matrix.orgtestuser.Thanks14:46:17
@testuser.:matrix.orgtestuser. changed their profile picture.16:59:38
@drensys_autotask:matrix.orgtest joined the room.19:41:28
@drensys_autotask:matrix.orgtestHi everyone. Bot does not get any response from user after encrypting the room in matrix-nio. Does someone know about how can I enable encryption in matrix-nio bot19:42:10
@cos:hacklab.ficosAFAIK nio doesn't support encrpted rooms19:48:06
@drensys_autotask:matrix.orgtestIs there any ways to encrypt room in matrix bot?20:11:09
@olmari:hacklab.fiSami Olmari first thing mentioned in https://matrix-nio.readthedocs.io/en/stable/ is ✅ transparent end-to-end encryption (EE2E) 20:14:46
@olmari:hacklab.fiSami Olmari test: have you gave/setup an devicestore? 20:15:42
@olmari:hacklab.fiSami Olmarior generally read https://matrix-nio.readthedocs.io/en/stable/nio.html#module-nio.crypto20:16:02
@drensys_autotask:matrix.orgtest
In reply to @olmari:hacklab.fi
or generally read https://matrix-nio.readthedocs.io/en/stable/nio.html#module-nio.crypto
I have tried this one, but got an error like:
Failed to login. Have you installed the correct dependencies? https://github.com/poljar/matrix-nio#installation Error: Matrix store and olm account is not loaded.
20:19:53
@drensys_autotask:matrix.orgtest
In reply to @drensys_autotask:matrix.org
I have tried this one, but got an error like:
Failed to login. Have you installed the correct dependencies? https://github.com/poljar/matrix-nio#installation Error: Matrix store and olm account is not loaded.
How can I install dependencies in matrix store and olm account
20:20:43
@olmari:hacklab.fiSami Olmariwithout store there will be no e2e, so :)20:20:52
@olmari:hacklab.fiSami Olmariso do you have libolm-dev version 3 installed as it is listed as pre-depency for e2e20:21:46
@drensys_autotask:matrix.orgtestYes I have installed via the command: pip install "matrix-nio[e2e]"20:22:35
@olmari:hacklab.fiSami Olmari so I ask again: have you installed the pre-depency it asks for? 20:26:39
@olmari:hacklab.fiSami Olmarithe very link you gave20:26:48
@drensys_autotask:matrix.orgtestNope, I'll try to install. Thank you20:32:24

There are no newer messages yet.


Back to Room List