-
Notifications
You must be signed in to change notification settings - Fork 17
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
Support for Message Moderation #82
Comments
Can you link me the XEP / XML message which notify client to remove some spam messages? |
There's a few things that could be improved in this spec, but it works ok.. A Moderated message is a retracted message (XEP-0424) sent by a moderator through MUC. It requires Iqs to send the command to retract as a moderator, and then messages are broadcasted to participants, so messages with this payload shouldn't come directly from participants. Whenever you see such a payload, make sure the MUC actually advertises A broadcast message looks like this: https://xmpp.org/extensions/xep-0425.html#usecase-success And then from MAM you can also get such payloads as specified here: https://xmpp.org/extensions/xep-0425.html#tombstones. Don't hesitate to join xmpp:jdev@muc.xmpp.org?join, I and other devs should be there to answer if you have any questions. |
Hello, I do not know how to retract a message with my usual XMPP clients (Gajim 1.3.3 on laptop, Conversation 2.12 on Android). It there some Prosody plugin required for client show an option? Without testing, I can not implement it... 😞 |
As I explained earlier, it would help me if you could provide the associated Prosody setup in #89. |
This issue will be closed within two weeks if the requested reproduction data is not provided. Please refer to this guide. |
I hope I did it as you expect. I basically pulled the |
Thanks a lot for this! I will try to reproduce today. Does Gajim has the moderation function? |
It looks like Gajim, Conversejs, Pade and poezio (sending only) have support for this feature. |
Okay… I need to update Gajim to 1.4
https://gajim.org/post/2021-11-29-development-news-november/ |
If you're using Debian, there's 1.5.1 available in bullseye-backports, otherwise 1.7.1 is available on the upstream repository |
Nop Ubuntu (to get newer packages 😆). |
Also another question @Ppjet6, I understand that this only applies to MUC, can you confirm? I would like to use Jid resource instead of the full Jid. |
I think leaving a trail that there was a message here is good. And yes I was going to say, I would just use the nickname (resource) and not the fulljid. The spec uses "retract" as the verb, I'm not saying it's not possible to use anything else but maybe it makes sense to keep the same terminology here? I don't know what other clients do. |
For the wording, I think |
Ok, both are fine with me. moderated may be more obvious? |
The spec isn't explicit about the reason, but I would say it's optional. I would find it weird not to. I've asked around. |
I pushed in a branch, so you can review and tell me in the pull request if something is wrong. |
https://mail.jabber.org/pipermail/standards/2023-February/039164.html Just so you know, this is a thing, and it's possible things change. I'll keep you updated! |
Is your feature request related to a problem? Please describe.
When undesirable messages are sent to the channel, it can help being able to retract them.
Describe the solution you'd like
https://xmpp.org/extensions/xep-0425.html
Message moderation allows a moderator a room to retract messages so that they are not shown anymore on supporting clients. It also tells servers to tombstone them so they don't reappear when fetching history next time.
As a first step, implementing support in reading (retracting a message in local history when receiving the stanza, or showing the tombstone from the archive) would be enough for joinjabber's use case.
I don't think xmpp-web has a way to attach messages (reactions, replies, etc.) to other messages at the moment so I understand if the sending part is more complex.
Describe alternatives you've considered
I don't think there is many alternatives available. Spam messages clogging the chat for example are a pain to workaround, the only available way currently is to let it slide out of screen (after having kicked out the spammer).
The text was updated successfully, but these errors were encountered: