18 Mar 2019 |
| @adam:thebeckmeyers.xyz left the room. | 13:07:37 |
| @freenode_Bob-:matrix.org joined the room. | 22:44:06 |
19 Mar 2019 |
| @freenode_Bob-:matrix.org left the room. | 03:57:42 |
| deerbard left the room. | 03:57:44 |
20 Mar 2019 |
| deerbard joined the room. | 09:10:09 |
| deerbard left the room. | 10:23:58 |
| @freenode_Bob-:matrix.org joined the room. | 16:52:08 |
21 Mar 2019 |
| deerbard joined the room. | 08:53:31 |
22 Mar 2019 |
| deerbard left the room. | 14:00:25 |
| deerbard joined the room. | 17:48:00 |
| deerbard left the room. | 19:28:41 |
25 Mar 2019 |
| deerbard joined the room. | 07:14:22 |
| Neil_away joined the room. | 17:18:41 |
26 Mar 2019 |
| deerbard left the room. | 14:07:29 |
27 Mar 2019 |
| deerbard joined the room. | 11:23:52 |
| deerbard left the room. | 14:24:46 |
28 Mar 2019 |
| deerbard joined the room. | 08:30:40 |
| deerbard left the room. | 10:13:45 |
29 Mar 2019 |
| snow joined the room. | 23:06:12 |
snow | Hello! I was playing with the source of purple-matrix and had a question about it. Is this an alright place to ask? | 23:08:58 |
snow | For more context, there's a part of the flow with matrix_api_start (I suppose more with how it's called in matrixprpl_join_chat) that confuses me. I was going to open an issue, but it's not really a bug... | 23:14:34 |
30 Mar 2019 |
@EionRobb:matrix.org | snow: any more info than that? | 06:29:50 |
snow | Sorry about that! I was trying to build off this PR: https://github.com/matrix-org/purple-matrix/pull/30 and it was mentioned in the review that user_data for the bad_response_callback could be used to grab the room alias instead of trying to parse it from the error. It looks like that "user_data" is the GHashTable *components passed to matrixprpl_join_chat (if I'm wrong, this might explain things), but I get a lot of weirdness when I try to cast user_data to GHashTable*, leading me to believe it's freed before the API call completes. | 06:39:31 |
snow | If it is freed (and it looks like by libpurple), I'm trying to figure out what a good way to get that room alias to the bad_response_callback function would be. I made a hack of sorts to send down a copied alias string, but that a. requires all callbacks be aware of this and free the string, and b. just feels not right, I guess? | 06:43:24 |
snow | I'm still learning the flow of this plugin as I go, so I was mostly wondering if there was something obvious I was missing here. | 06:44:30 |
@EionRobb:matrix.org | is that in room_create_callback() ? | 06:44:36 |
snow | Sorry, which part? | 06:45:19 |
@EionRobb:matrix.org | I'm trying to work out which "user_data" you're meaning | 06:45:58 |
@EionRobb:matrix.org | but yeah, the hash table is destroy'd after the call to join_chat by libpurple | 06:46:34 |
snow | Oh! The user_data I'm mainly referring to is in room_create_callback(). | 06:46:51 |