!JiiOHXrIUCtcOJsZCa:matrix.org

nio

343 Members
The nio matrix python library | Latest release 0.24.0 https://pypi.org/project/matrix-nio/ | Documentation: https://matrix-nio.readthedocs.io/en/stable/138 Servers

Load older messages


SenderMessageTime
24 Mar 2024
@maru:mike.it-loops.comMaruI read through this but - You are using this sample program to accept this incoming emoji verification and follow the protocol to successfully verify the other party's device - makes me wonder. I want to verify the nio session and not the other one.07:58:13
25 Mar 2024
@nicocool:matrix.orgnicocool changed their profile picture.13:47:41
30 Mar 2024
@anton.molyboha:matrix.organton.molyboha

Is it possible to ask sync_forever to stop its loop gracefully?

From glancing through the code, it seems that the only way is to cancel the async task -- but then I'd need to code all my callbacks to handle cancellations correctly, and that seems hard. Maybe there is a better way?

13:38:57
@poljar:matrix.orgpoljarNo, cancelling the task would be the way to go.13:50:37
@anton.molyboha:matrix.organton.molybohaWould you consider a PR that would change that?14:20:54
@m9u8ed3h:matrix.orgm9u8ed3h joined the room.16:02:09
@m9u8ed3h:matrix.orgm9u8ed3hHello everyone 👋 has someone already managed message encryption from services via webhook (like Uptime Kuma notifications) using matrix-nio ? 16:08:43
31 Mar 2024
@me:shahpaarth.comPaarth Shah - Github Maintainer changed their display name from Paarth Shah - Github Maintainer to OdoItal.07:53:56
@anton.molyboha:matrix.organton.molyboha *

Would you consider a PR that would change that?

(edit: I meant, would it be ok if I prepare a PR that would add a function to gracefully stop sync_forever -- or would such change go against the philosophy of the library?)

14:50:40
@me:shahpaarth.comPaarth Shah - Github Maintainer changed their display name from OdoItal to Paarth Shah - Github Maintainer.16:55:38
16 Apr 2024
@lukas:lw1.at@lukas:lw1.at left the room.17:46:37
17 Apr 2024
@nicocool:matrix.orgnicocool changed their profile picture.07:39:30
20 Apr 2024
@maxi:millian.seMaximillian changed their profile picture.23:50:09
21 Apr 2024
@maxi:millian.seMaximillian changed their profile picture.00:02:52
@meshtastic-dev:scamdemic.wtf@meshtastic-dev:scamdemic.wtf left the room.01:37:20
@tclj:matrix.orgMatrix joined the room.19:44:23
22 Apr 2024
@ff777:nerdsin.spaceFF777is there a simple way to get the latest event ID in a particular room?..21:00:28
@ff777:nerdsin.spaceFF777

okay i figured it out........ it's not simple but, you get the response from the sync callback and have to go in to the rooms list in it and get the timeline's prev_batch token and then use it in a room_messages call and it returns chunks of events at a time..

i have kind of a ridiculous question.......... one of my friends on here for some reason wants to change to a different account and wanted to try to delete all of his messages off of his current account he is on before he does that.. I know some other platforms have that feature but i don't think most matrix clients do..

i know it would be a lot of data transmission getting like the entire history from every room to try to automate the deletion of all of one's own past messages they sent........ is there a more efficient way to do it, to where the homeserver can only return back the events of a particular user?....... The API docs on the room_messages have a parameter called message_filter but it doesn't say how to use it any where except for message_filter (Optional[Dict[Any, Any]]) – A filter dict that should be used for this room messages request.

so, is there an efficient way to delete your own past messages from all of the rooms? or should i just tell him it is a ridiculous request and not even bother with trying to automate it?..

22:12:08
@ff777:nerdsin.spaceFF777okay this is my new thought on it: i think it would be ridiculous to try it just because of the sheer amount of data transmission it would require, and would probably be rate-limited the entire time any way.. for platforms that allow a user to delete their entire past history it is (i think) done at the server level, and not at client level, which means there doesn't need to be any network transmission to delete the user's history.. I don't think matrix homeservers probably have any type of API call like that to delete all user history data at the homeserver level, which means the remaining option would be a bodacious amount of data transmission getting all history for all rooms a user is in.. so i don't think any one should attempt it..22:59:56
23 Apr 2024
@maxi:millian.seMaximillianDepending on how many messages they have sent, it could still be viable. They could delete messages at a very slow pace, staying just under the rate limit, and leave it running over a few days. However, for public rooms that run a moderating bot, it may flag this as spam and either ban their account immediately or at the least mute it until somebody can manually decide. If it isn't a lot of messages, I'd say this is fine-ish. But in general, I'd strongly advise against it and suggest they instead get a list of all their messages, manually read through them, and only delete ones that expose any personal information.00:54:09
@maxi:millian.seMaximillian

I don't think matrix homeservers probably have any type of API call like that to delete all user history data at the homeserver level

It's been discussed many a time before and it seems to be unwanted; it would enable more harm than good. There is, however, a proposal to allow redaction of multiple events at once using only one redaction event.

01:03:37
@ifiguero:matrix.orgifiguero if you have the event_id of every message you sent (I think the standard returns you the id every time you send a new event) you can make a queue redacting your every event without fetching the room data. 05:01:08
@ifiguero:matrix.orgifigueroI did the test and you can "dive" into the bottom of any room as long as is not that busy05:01:40
@ifiguero:matrix.orgifiguero currently I keep a copy on a local db of every user_id and event_id on every room event on a room. So you could just query the table and then queue the redaction. 05:02:58
@ifiguero:matrix.orgifigueroIt would flood the rooms with redaction events, so it wouldn't go unnoticed 05:03:55
@ff777:nerdsin.spaceFF777interesting05:04:19
25 Apr 2024
@hauke:rdmnn.de@hauke:rdmnn.de left the room.22:19:41
26 Apr 2024
@gabriel:parity.iogabriel joined the room.13:46:50
27 Apr 2024
@t1u:matrix.orgt1u joined the room.01:00:02
@tclj:matrix.orgMatrix changed their display name from Martix to Matrix.18:01:17

There are no newer messages yet.


Back to Room ListRoom Version: 4