!maunium-v10:maunium.net

Maunium

262 Members
Discussion about any of tulir's projects that don't have dedicated rooms | https://github.com/tulir | https://mau.dev | https://mau.fi134 Servers

Load older messages


SenderMessageTime
15 May 2024
@davicorn:beeper.comdavid * btw my bridge is now pretty much done for my personal use :) so from knowing nothing about bridge development, to harassing tulir a dozen times, to finishing it, took around a week. the gmessages and whatsapp repos helped a lot I'll see if I can add some docs or a quickstart boilerplate after cleaning this up (just in time for it being useless once v2 gets out haha) 03:13:31
@davicorn:beeper.comdavidhaha you don't wanna see the code 😂03:13:41
@davicorn:beeper.comdavid * btw my bridge is now pretty much done for my personal use :) so from knowing nothing about bridge development, to harassing tulir a dozen times, to finishing it, took around a week. the gmessages and whatsapp repos helped a lot I'll see if I can add some docs or a quickstart boilerplate after cleaning this up (just in time for it being useless once v2 gets out haha). I think the hardest part was probably getting started and getting a minimal version running 03:14:42
@davicorn:beeper.comdavid * btw my bridge is now pretty much done for my personal use :) so from knowing nothing about bridge development, to harassing tulir a dozen times, to finishing it, took around a week. the gmessages and whatsapp repos helped a lot I think the hardest part was probably getting started and getting a minimal version running, the rest was more smooth from there I'll see if I can contribute some docs or a quickstart boilerplate after cleaning this up (just in time for it being useless once v2 gets out haha)03:18:21
@davicorn:beeper.comdavid * btw my bridge is now pretty much done for my personal use :) so from knowing nothing about bridge development, to harassing tulir a dozen times, to finishing it, took around a week which isn't so bad, thanks to the awesome work available on github. the gmessages and whatsapp repos helped a lot I think the hardest part was probably getting started and getting a minimal version running, the rest was more smooth from there I'll see if I can contribute some docs or a quickstart boilerplate after cleaning this up (just in time for it being useless once v2 gets out haha)e03:37:48
@matchstick:beeper.commatchstick (they/them) left the room.17:51:38
16 May 2024
@davicorn:beeper.comdavid

I'm trying to use intent.SetAccountData like here: https://github.com/mautrix/gmessages/blob/c93884f6e61f236b335ca138c83f6bb5bc57a47b/user.go#L1303-L1344
The first call, intent.GetAccountData, works fine. The second call to actually commit the update intent.SetAccountData is giving me _matrix/client/v3/user/@davicorn:beeper.com/account_data/m.direct: M_UNKNOWN_TOKEN (HTTP 401): Invalid access token passed., any idea?

Tried to use the DoublePuppet intent, but also experimented with bridge.AS.Client(userID) or the bot intent
I thought it's just updating the AccountData so normal user client, but I guess not

What access token does this one need? Any ideas?

12:16:43
@davicorn:beeper.comdavidtrying to mark the conversations as DM 12:17:18
@tulir:maunium.nettulirbeeper probably doesn't allow setting account data with double puppeting anymore12:17:41
@davicorn:beeper.comdavidah, no it does, I'm able to hit the API on matrix.beeper.com directly through https://playground.matrix.org/#get-/_matrix/client/v3/user/-userId-/account_data/-type-12:18:10
@tulir:maunium.nettulirglobal account data is currently stored in synapse, so modifying it requires a synapse token, but bridges don't get synapse tokens anymore because they don't need to send anything to synapse12:20:22
@davicorn:beeper.comdavidhmmm I see12:20:52
@tulir:maunium.nettulir (and beeper clients don't care about m.direct anyway) 12:21:30
@davicorn:beeper.comdavidso do we have any way to actually mark as DM from a bridge then?12:21:49
@tulir:maunium.nettulir the m.bridge event has a room type field, but I don't remember if that's actually used or not 12:22:49
@tulir:maunium.nettulirbut beeper clients also don't have any separate view for DMs, so not sure why you want to mark something as a DM 🤔12:23:06
@davicorn:beeper.comdavidventuring into bridge development made me kinda like Element 🙈 but the room/people thing is very chaotic, so wanted to do my part and get my bridge to mark it's stuff as DMs properly12:24:06
@davicorn:beeper.comdavidyeah there is also IsDirect when calling CreateRoom but doesn't seem to actually mark it as dm12:24:58
@davicorn:beeper.comdavidhmm yeah, is_direct really doesn't seem to do much, that's weird, rooms still getting created as normal rooms. it's still in the spec tho https://playground.matrix.org/#post-/_matrix/client/v3/createRoom14:47:51
@tulir:maunium.nettulirthere are no abnormal rooms (except spaces)14:48:54
@tulir:maunium.nettuliris_direct is just a suggestion to the receiving client that it may want to add the room to m.direct, nothing else14:49:12
@davicorn:beeper.comdavidI meant they don’t appear under m.direct when they should 🤔14:49:49
@tulir:maunium.nettulirthe client that accepts the invite has to add it14:50:56
@tulir:maunium.nettulirthat's what I meant by "suggestion to the receiving client"14:51:08
@davicorn:beeper.comdavidoh, I assumed it means it’s automatically getting added to accountData m.direct on the server 14:51:35
@pulsedev:pulseflow.chPulseDev Hi there, did I understand this correctly: Maunium is the go framework is the framework which can be/get used for creating matrix bridges? 15:18:39
@davicorn:beeper.comdavid Yup 15:18:59
@pulsedev:pulseflow.chPulseDevOkay, thanks! The link formatting was a bit unfortunate xd15:19:15
@tulir:maunium.nettulir
In reply to @pulsedev:pulseflow.ch
Hi there, did I understand this correctly: Maunium is the go framework is the framework which can be/get used for creating matrix bridges?
mautrix-go is the go framework
15:19:36
@pulsedev:pulseflow.chPulseDev
In reply to @tulir:maunium.net
mautrix-go is the go framework
Yeah, sorry the link got wrongly formatted :D Skill issue
15:19:52

Show newer messages


Back to Room ListRoom Version: 10