[ADD/MOD] Help/stats and two-way modification

More on the Reverse Ideology!
This commit is contained in:
LDA 2024-06-29 19:10:28 +02:00
commit 8472ada953
13 changed files with 203 additions and 14 deletions

View file

@ -64,6 +64,12 @@ MessageStanza(ParseeData *args, XMLElement *stanza)
to = ParseeDecodeMXID(HashMapGet(stanza->attrs, "to"));
from = HashMapGet(stanza->attrs, "from");
/* TODO: On semi-anonymous MUCs, it might be preferable to use a
* form of the occupant ID as the base, as it is more unique, and
* less prone to trigger the character limit on Matrix.
*
* See: https://xmpp.org/extensions/xep-0421.html */
decode_from = ParseeLookupJID(from);
from_matrix = ParseeEncodeJID(args->config, decode_from, true);
room = ParseeFindDMRoom(args, to, from);