-
moparisthebest
Yours is one :)
-
jjj333_p (any pronouns)
when does a message type `normal` happen?
-
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
-
jjj333_p (any pronouns)
https://pkg.go.dev/mellium.im/xmpp/stanza@v0.22.0#MessageType
-
jjj333_p (any pronouns)
dms, group chats, and a secret third thing
-
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
-
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 -
wgreenhouse
there was also type 'headline'
-
wgreenhouse
(again, trigger a notification, but also meant not to be archived by the recipient)
-
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
-
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
-
wgreenhouse
yeah, headlines are the most ephemeral
-
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.
-
badrihippo
Server maintainence to sports updates! Gotta love that progression 😏
-
theTedd
Once you have useful functionality, it gets used
-
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
-
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? ↺
-
jjj333_p (any pronouns)
i feel like its bad ux to not archive recieved messages unless explicitly configured to do so.
-
jjj333_p (any pronouns)
as for headline being basically deliver only if online, i assume the server will shake that one out?
-
jjj333_p (any pronouns)
or am i misunderstanding here
-
singpolyma
When the message says "do not archive this" I'm not sure what you'd gain by archiving it
-
jjj333_p (any pronouns)
it depends from what the message is being sent, i guess im missing context
-
jjj333_p (any pronouns)
but i would expect if someone messages me that ill be able to find that message later somehow
-
jjj333_p (any pronouns)
or are all dms and whatnot expected to be chatmessages?
-
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
-
singpolyma
No app is letting people send you headline messages and if it did it would be for some highly specific reason
-
theTedd
no-store messages aren't likely to be messages a human intentionally sent you, it's more things like typing notifications
-
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?) ↺
-
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 ↺
-
jjj333_p (any pronouns)
im more confused about normalmessage since thats aparently nostore and can it come from users?
-
lovetox
> im more confused about normalmessage since thats aparently nostore and can it come from users? ? who says that ↺
-
lovetox
users chat with other users, either in a groupchat or normal chat, hence type "groupchat" or "chat"
-
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 ↺
-
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
-
lovetox
thats a developer package
-
lovetox
no user will use this
-
lovetox
yes developers can develop applications that send normal messages in specific reasons that a XEP tells you to
-
jjj333_p (any pronouns)
🤦♂️
-
jjj333_p (any pronouns)
no shit its a developer package
-
jjj333_p (any pronouns)
but i dont know where other developers are using it
-
lovetox
are you asking us as a developer in what circumstances you should use "normal" messages?
-
lovetox
then we can give you a list of examples
-
jjj333_p (any pronouns)
> are you asking us as a developer in what circumstances you should use "normal" messages? yes. ↺
-
jjj333_p (any pronouns)
i thought i had made that clear
-
lovetox
you writing a groupchat component, and you send a groupchat invite to a user
-
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)
-
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 ↺
-
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 ↺
-
lovetox
just think about automated messages, most of them are type=normal
-
lovetox
nah maybe even that is too much
-
lovetox
type = normal is actually a bit rare
-
lovetox
but if it is used its for something automated
👍 1 -
jjj333_p (any pronouns)
are invites usually normal in your experience?
-
singpolyma
We use type=chat more and more often as a "carbons and mam please" signal
👍 1 -
lovetox
jjj333_p (any pronouns), dont think this is a free choice
-
lovetox
there is a type for every circumstance
-
lovetox
you need to look it up in XEPs
-
singpolyma
Like JMI calls are usually type=chat even though they're dubiously in a "chat context"
-
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? ↺
-
singpolyma
Yes of course
-
singpolyma
Client should mostly not care
👍 1 -
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 ↺