-
jjj333_p (any pronouns)
i'm familiarizing myself with halcyon (tigase kotlin xmpp lib) and i made a simple muc echo bot, and somehow the messages started coming from the muc itself???
-
jjj333_p (any pronouns)
https://downloadable.pain.agency/file_share/01a060a6-6b95-7228-bfca-dd25f1d4a514/dd35ef39-1c88-4d4c-be18-14f68f3b1c03.png
-
jjj333_p (any pronouns)
ran it again with xml console in gajim open, and the xml looks ...normal? perhaps this is a gajim bug? or is something else subtly off? ```xml <!-- Incoming Tue 01 Sep 2026 07:49:50 PM HST (jjj333@pain.agency) --> <message xmlns="jabber:client" xml:lang="en" from="chaos@group.pain.agency/fart" to="jjj333@pain.agency/gajim.A0Q0EO69" id="KHLYap4SeymebRXSFfUKoy8B"> <body>Echo: im just using a weird library in a language im not familiar with</body> <request xmlns="urn:xmpp:receipts" /> <origin-id xmlns="urn:xmpp:sid:0" id="KHLYap4SeymebRXSFfUKoy8B" /> <x xmlns="http://jabber.org/protocol/muc#user" /> <occupant-id xmlns="urn:xmpp:occupant-id:0" id="95bDvTl1PF4uZawuKjfbxmZEQ5w2P9Kww9bcZ5Wk0pA=" /> <stanza-id by="jjj333@pain.agency" id="01a060aa-a0ed-7431-b03a-5f937fc7462c" xmlns="urn:xmpp:sid:0" /> </message> ```
-
lovetox
Wild conclusion, Gajim does what I expect it to, must be a Gajim Bug
-
jjj333_p (any pronouns)
> Wild conclusion, Gajim does what I expect it to, must be a Gajim Bug ? ↺
-
jjj333_p (any pronouns)
i dont expect gajim to use the name of the muc as the accounts nickname, when thats not the resource string
-
jjj333_p (any pronouns)
as i said it could be something subtle i dont see in the xml being wrong, but the whole point is the behavior is unexpected
-
lovetox
I would begin with the message type
-
Sunglocto
u should be sending it with type groupchat
-
jjj333_p (any pronouns)
yes i know
-
jjj333_p (any pronouns)
i did completely miss that its missing the type, surprised that it was still allowed through the muc component though
-
jjj333_p (any pronouns)
i thought type was mandatory
-
lovetox
It is, but it has a default
-
lovetox
"normal"
-
jjj333_p (any pronouns)
mhmm
-
lovetox
So it's kinda not mandatory to add to the stanza, but always there anyway
-
lovetox
Still weird that it reflects the message
-
lovetox
Would not expect that
-
jjj333_p (any pronouns)
halcyon seems to not have support for setting a type? i feel like im swimming uphill over here
-
jjj333_p (any pronouns)
> i did completely miss that its missing the type, surprised that it was still allowed through the muc component though (for future context, i'm running prosody) ↺
-
jjj333_p (any pronouns)
https://downloadable.pain.agency/file_share/01a060cf-c754-7714-be80-bd3638d94c6e/7b79fc5a-0ecc-4401-bd79-1c2fc539a24e.png
-
jjj333_p (any pronouns)
it looks like it should be setting the type but its not for some reason. this is the definition of the halcyon function im calling
-
jjj333_p (any pronouns)
nvm thats just a message builder, ive somehow found myself in factory hell 😔
-
jjj333_p (any pronouns)
> Still weird that it reflects the message apparently if i add an oob element, it will then not reflect the message ↺
-
jjj333_p (any pronouns)
fantastic
-
lovetox
ah singpolyma, i remember now again why i join the error wrong
-
lovetox
the thing is, that servers are not forced to include any payload in an error at all
-
lovetox
this means you can receive an error and never know it was a PM
-
lovetox
you would indeed need to lookup the message id in your own database
-
lovetox
so in this case presented, what would i find in my database? a normal groupchat message
-
lovetox
oh lol, and yes i look up the message in the database, find the groupchat message, and thats why the error is then at the groupchat message
-
lovetox
though i always look it up, and dont take the payload if its included, which i should change
-
lovetox
i think this is still a server bug ..
-
lovetox
if receive a type=groupchat message as remote server, it probably should not return an error to the fulljid ..
-
singpolyma
Oh it's for sure the target doing something kinda dumb