-
flow
singpolyma, not as far as I remember, but isn't that something you would usually negotiate with the online counterparty?
-
flow
not saying that advertising codes etc. in disco is a bad idea, i just believe we haven't seen such a thing because it is usually negotiated after the disco lookup
-
Daniel
I don't think there has been any discussion on that but we do that on one of the projects I'm working on
-
flow
Daniel, I am curious. Can you elaborate on the motivation for doing so?
-
Daniel
For example voice messages going from iOS to Android. Android supports the very low bandwidth GSM codec (aar something) while iOS does not. When sending between Androids we use that. But when sending to iOS we use ogg
-
Daniel
Plus potentially sending heif or avif images that older Androids don't support
-
Daniel
> For example voice messages going from iOS to Android. Android supports the very low bandwidth GSM codec (aar something) while iOS does not. When sending between Androids we use that. But when sending to iOS we use ogg Plus older versions of Android don't have an ogg encoder so we simply hide the voice message button when the contact is iOS
-
Daniel
All in all classic negotiation stuff but for one shot message types
-
flow
thanks :)
-
MattJ
Daniel: how do you deal with this when the recipient is offline?
-
Daniel
We do some light client side caching. Storing boolean like "supports low quality voice message". Conversations does this too with "supports av calls"
-
Daniel
But it's easier on that project because every user has only one client
-
flow
MattJ, https://github.com/Flowdalic/xeps/commit/1d0d0227af7cd9866c4c913ca8bb98b15c73748b
-
MattJ
Yay, thanks :)
-
MattJ
ETA on -NONE? ;)
-
flow
MattJ, I was hoping that I could motviate you to write the patch for -NONE, together with a big fat warning text about the implications (even though, -NONE potentially has similar security properties like -UNIQ). I guess we should also write a sentence recommending using tls-exporter when available
-
MattJ
Sure
-
singpolyma
Daniel: yeah, that sounds exactly like the kind of use I had in mind. Even webp support for image messages isn't universal