-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Archiving support for XEP-0334: Message Processing Hints #359
Comments
Combining the existing options and the hints from XEP-0334 leads to a lot of possible scenarios:
How do we make this manageable for typical end users? |
Maybe replace the options that we have now with these two sets? Can we do away with the configuration distinction between group chats and one-on-on chats? Can we always log the full stanza, and do away with that option too? Archive messages
Optionally: add a checkbox that causes only the text, not the entire stanza, to be added Archive message metadata
|
This is a mock-up of the above. Note that I also made indexing an explicit choice (for #354): |
I'm not sure if I'm completely tracking with you. I would suggest to always log the entire stanza, unless the optional checkbox is checked. If that is checked then we can only log true chat messages, and not metadata. For 'true chat messages' (these are message stanzas with a text body), I think we can have these four options:
The "metadata" that I'm referring to - for which I've probably chosen a poor word - are the 'other' message stanzas: those that have no text body. For these, we have these two options:
(Again, if we are not logging the entire stanza, then the entire 'metadata' section should be disabled, as there is no metadata available if we only log the message body). |
You're right, I don't think it's possible to determine that server-sided. An attempt was made in #179 which depends on a hard-coded list of known extensions. This definition, in the best case scenario, will likely lag behind what clients implement. As we cannot determine what is relevant 'metadata', I've given this section only two options: "never" or "when client hints that we should log this". That way, the client gets to decide (and we do not have to). |
When processing messages in context of message archiving, hints as defined in XEP-0334: Message Processing Hints should be taken into account.
Currently, we have these options, which affect only messages that have a text body:
Why don't we have an option to enable/disable stanzas for one-to-one chats?
XEP-0334 adds these hints. Note that these are specifically designed to be applicable too to stanzas that have no text body.
This all should be folded into a uniform UI and implementation.
The text was updated successfully, but these errors were encountered: