mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:25:11 +00:00
[ADD/WIP] Editing support XMPP->Matrix
This commit is contained in:
parent
771c3271ad
commit
ae740878c8
13 changed files with 249 additions and 106 deletions
|
|
@ -18,7 +18,6 @@ ParseeMemberHandler(ParseeData *data, HashMap *event)
|
|||
char *sender = GrabString(event, 1, "sender");
|
||||
char *chat_id;
|
||||
const ParseeConfig *conf = data->config;
|
||||
Log(LOG_INFO, "Membership '%s'->'%s'", state_key, membership);
|
||||
|
||||
if (StrEquals(membership, "invite") && ParseeIsPuppet(conf, state_key))
|
||||
{
|
||||
|
|
@ -84,11 +83,6 @@ ParseeMessageHandler(ParseeData *data, HashMap *event)
|
|||
return;
|
||||
}
|
||||
|
||||
if (reply_id)
|
||||
{
|
||||
Log(LOG_INFO, "reply=%s", reply_id);
|
||||
}
|
||||
|
||||
ref = DbLock(data->db, 3, "rooms", id, "data");
|
||||
json = DbJson(ref);
|
||||
direct = JsonValueAsBoolean(HashMapGet(json, "is_direct"));
|
||||
|
|
@ -125,8 +119,6 @@ ParseeMessageHandler(ParseeData *data, HashMap *event)
|
|||
if (reply_id)
|
||||
{
|
||||
ParseeGetStanzaInfo(data, chat_id, reply_id, &stanza, &sender);
|
||||
|
||||
Log(LOG_INFO, "Replying to %s by %s", stanza, sender);
|
||||
}
|
||||
XMPPJoinMUC(jabber, jid, rev);
|
||||
XMPPSendPlain(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue