mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 16:55:10 +00:00
[MOD] Add x-parsee tag with metadata, global nicks
Still need to grab it on the room-level from the room state if possible, otherwise just rollback to the MXID. I also need to consider profile pictures and bridging media, and check if the nick was present XMPP-side first, as that can and will cause issues, especially around semi-anonymous MUCs.
This commit is contained in:
parent
2b16ccbaf8
commit
b820a441ed
9 changed files with 102 additions and 6 deletions
|
|
@ -102,7 +102,7 @@ ParseeXMPPThread(void *argp)
|
|||
{
|
||||
ParseeDMHandler(room, from_matrix, data, args->config);
|
||||
}
|
||||
if (mroom_id && !ParseeIsJabberPuppet(args->config, from))
|
||||
if (mroom_id && !XMPPIsParseeStanza(stanza))
|
||||
{
|
||||
char *res = ParseeGetResource(from);
|
||||
char *encoded = ParseeEncodeJID(args->config, from, false);
|
||||
|
|
@ -113,8 +113,8 @@ ParseeXMPPThread(void *argp)
|
|||
if (ParseeVerifyStanza(args, chat_id, s_id_str))
|
||||
{
|
||||
ASRegisterUser(args->config, encoded);
|
||||
ASJoin(args->config, mroom_id, encoded);
|
||||
ASSetName(args->config, encoded, res);
|
||||
ASJoin(args->config, mroom_id, encoded);
|
||||
ASSend(
|
||||
args->config, mroom_id, encoded,
|
||||
"m.room.message", MatrixCreateMessage(data->data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue