but as it is clear, this does not work.
I have seen many in the implementation that they change in the database, or make their own storage, so far we are considering this method, but if there is an implementation inside smack, I wanted to use it, help - if you know!
Note that XEP-0308 does not cause a message to be modified. Instead, it sends a new message, that is expected to be used instead of the original. You will not see the original message being modified in storage. Instead, you’ll see two messages:
the original one.
the replacement message.
I have never tried this with Openfire. I assume, but I am not sure, that this functionality does not need specific server-sided support (and that it can be completely implemented by clients).
And there is such a case that the message will be included in this list after the change, you can exclude it, but then the list will output size-1 elements, and so I think it’s resource-intensive to filter, what would you suggest?