mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:15:11 +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
|
|
@ -104,10 +104,13 @@ ParseeMessageHandler(ParseeData *data, HashMap *event)
|
|||
}
|
||||
jid = ParseeEncodeMXID(sender);
|
||||
{
|
||||
char *rev = StrConcat(3, muc_id, "/", jid);
|
||||
/* TODO: Check the name's validity */
|
||||
char *name = ASGetName(data->config, NULL, sender);
|
||||
char *rev = StrConcat(3, muc_id, "/", name);
|
||||
XMPPJoinMUC(jabber, jid, rev);
|
||||
XMPPSendPlain(jabber, jid, muc_id, body, "groupchat");
|
||||
Free(rev);
|
||||
Free(name);
|
||||
}
|
||||
Free(chat_id);
|
||||
Free(muc_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue