jdev - 2025-04-10


  1. moparisthebest

    Yours is one :)

  2. jjj333_p (any pronouns)

    when does a message type `normal` happen?

  3. jjj333_p (any pronouns)

    mellium documentation says it happens when a message is sent outside of a dm or groupchat, and to which it is expected the recipient will reply

  4. jjj333_p (any pronouns)

    https://pkg.go.dev/mellium.im/xmpp/stanza@v0.22.0#MessageType

  5. jjj333_p (any pronouns)

    dms, group chats, and a secret third thing

  6. singpolyma

    Happens whenever an app or service wants to send one, heh. In practise most chat apps don't use them for much these days

  7. theTedd

    > when does a message type `normal` happen? In _the olde dayes_ (early 2000s), one mode of messaging was that messages were essentially one-off 'postcards' - you'd send an individual message, often as a reply to another individual message, but without a chat history - a dialog would appear when you got a message and you could reply or dismiss, then the dialog was gone. 'Normal' messages were based on that (think "email lite"), while 'chat' messages are what's most common now.

    😮 1
  8. wgreenhouse

    there was also type 'headline'

  9. wgreenhouse

    (again, trigger a notification, but also meant not to be archived by the recipient)

  10. singpolyma

    From a protocol PoV the right way to think about these is as delivery classes. Headline means only deliver if effectively online. That means archive along with chats. Normal is anything else, probably needs storage hints etc

  11. singpolyma

    From a protocol PoV the right way to think about these is as delivery classes. Headline means only deliver if effectively online. Chat means archive along with chats. Normal is anything else, probably needs storage hints etc

  12. wgreenhouse

    yeah, headlines are the most ephemeral

  13. theTedd

    'Headline' was meant for server-wide announcements and admin messages, e.g. "This server will be going down for maintenance at 0500 for approximately 30 minutes." And then expanded to include other types of announcement, e.g. breaking news, sports scores, etc.

  14. badrihippo

    Server maintainence to sports updates! Gotta love that progression 😏

  15. theTedd

    Once you have useful functionality, it gets used

  16. singpolyma

    It's primarily used for pep and pubsub now, to notify you if online and otherwise you can fetch from the node when you connect

  17. jjj333_p (any pronouns)

    > From a protocol PoV the right way to think about these is as delivery classes. Headline means only deliver if effectively online. That means archive along with chats. Normal is anything else, probably needs storage hints etc would it be _breaking_ spec to just archive it with normal messages, and just handle for the different forms the from field might take?

  18. jjj333_p (any pronouns)

    i feel like its bad ux to not archive recieved messages unless explicitly configured to do so.

  19. jjj333_p (any pronouns)

    as for headline being basically deliver only if online, i assume the server will shake that one out?

  20. jjj333_p (any pronouns)

    or am i misunderstanding here

  21. singpolyma

    When the message says "do not archive this" I'm not sure what you'd gain by archiving it

  22. jjj333_p (any pronouns)

    it depends from what the message is being sent, i guess im missing context

  23. jjj333_p (any pronouns)

    but i would expect if someone messages me that ill be able to find that message later somehow

  24. jjj333_p (any pronouns)

    or are all dms and whatnot expected to be chatmessages?

  25. jjj333_p (any pronouns)

    it just sounds like based on this chat its more or less a once view message or something of that sort

  26. singpolyma

    No app is letting people send you headline messages and if it did it would be for some highly specific reason

  27. theTedd

    no-store messages aren't likely to be messages a human intentionally sent you, it's more things like typing notifications

  28. jjj333_p (any pronouns)

    > no-store messages aren't likely to be messages a human intentionally sent you, it's more things like typing notifications oh, (though arent those usually groupchatmessage or chatmessage?)

  29. jjj333_p (any pronouns)

    > No app is letting people send you headline messages and if it did it would be for some highly specific reason no i got headline is basically server anouncements, but my understanding is they arent nostore

  30. jjj333_p (any pronouns)

    im more confused about normalmessage since thats aparently nostore and can it come from users?

  31. lovetox

    > im more confused about normalmessage since thats aparently nostore and can it come from users? ? who says that

  32. lovetox

    users chat with other users, either in a groupchat or normal chat, hence type "groupchat" or "chat"

  33. theTedd

    > im more confused about normalmessage since thats aparently nostore and can it come from users? Headline is no-store by default; other messages are usually stored unless they have a 'no-store' hint

  34. jjj333_p (any pronouns)

    ``` // NormalMessage is a standalone message that is sent outside the context of a // one-to-one conversation or groupchat, and to which it is expected that the // recipient will reply. Typically a receiving client will present a message // of type "normal" in an interface that enables the recipient to reply, but // without a conversation history. ``` - mellium stanza package

  35. lovetox

    thats a developer package

  36. lovetox

    no user will use this

  37. lovetox

    yes developers can develop applications that send normal messages in specific reasons that a XEP tells you to

  38. jjj333_p (any pronouns)

    🤦‍♂️

  39. jjj333_p (any pronouns)

    no shit its a developer package

  40. jjj333_p (any pronouns)

    but i dont know where other developers are using it

  41. lovetox

    are you asking us as a developer in what circumstances you should use "normal" messages?

  42. lovetox

    then we can give you a list of examples

  43. jjj333_p (any pronouns)

    > are you asking us as a developer in what circumstances you should use "normal" messages? yes.

  44. jjj333_p (any pronouns)

    i thought i had made that clear

  45. lovetox

    you writing a groupchat component, and you send a groupchat invite to a user

  46. theTedd

    The Mellium blurb is trying to explain the usage of type=normal - as I explained earlier - no history just refers to the user interface, it's not on a protocol level. Most clients aren't differentiating type=normal from type=chat (they're treated the same)

  47. jjj333_p (any pronouns)

    > The Mellium blurb is trying to explain the usage of type=normal - as I explained earlier - no history just refers to the user interface, it's not on a protocol level. Most clients aren't differentiating type=normal from type=chat (they're treated the same) ah this makes a lot of sense, thanks

  48. jjj333_p (any pronouns)

    > you writing a groupchat component, and you send a groupchat invite to a user okay this makes a lot of sense, and explains why ive had issues capturing invites in the past

  49. lovetox

    just think about automated messages, most of them are type=normal

  50. lovetox

    nah maybe even that is too much

  51. lovetox

    type = normal is actually a bit rare

  52. lovetox

    but if it is used its for something automated

    👍 1
  53. jjj333_p (any pronouns)

    are invites usually normal in your experience?

  54. singpolyma

    We use type=chat more and more often as a "carbons and mam please" signal

    👍 1
  55. lovetox

    jjj333_p (any pronouns), dont think this is a free choice

  56. lovetox

    there is a type for every circumstance

  57. lovetox

    you need to look it up in XEPs

  58. singpolyma

    Like JMI calls are usually type=chat even though they're dubiously in a "chat context"

  59. jjj333_p (any pronouns)

    > We use type=chat more and more often as a "carbons and mam please" signal ah. i feel like a lot of this is server directives more than client directives, am i right in that instinct?

  60. singpolyma

    Yes of course

  61. singpolyma

    Client should mostly not care

    👍 1
  62. jjj333_p (any pronouns)

    > there is a type for every circumstance i suppose yeah ill rtfm, i've not had a chance to look at invite spec, as it hasnt been relevant yet, i just wanted to get a feel for it first