I honestly don't know what to call it.

It's not a 0.2 release, btw.
This commit is contained in:
LDA 2024-09-26 19:07:46 +02:00
commit 3ceae7b053
13 changed files with 179 additions and 85 deletions

View file

@ -223,7 +223,10 @@ MessageStanza(ParseeData *args, XMLElement *stanza, XMPPThread *thr)
ParseePushOIDTable(from, occ_id);
}
}
Log(LOG_DEBUG, "XEP-421: %fs", Elapsed(rectime));
if (args->verbosity >= PARSEE_VERBOSE_TIMINGS)
{
Log(LOG_DEBUG, "XEP-421: %fs", Elapsed(rectime));
}
if (StrEquals(type, "error"))
{
@ -268,7 +271,10 @@ end_error:
);
return false;
}
Log(LOG_DEBUG, "Error management: %fs", Elapsed(rectime));
if (args->verbosity >= PARSEE_VERBOSE_TIMINGS)
{
Log(LOG_DEBUG, "Error management: %fs", Elapsed(rectime));
}
if (moderated)
{
@ -296,19 +302,28 @@ end_error:
body = XMLookForUnique(stanza, "body");
PEPManagerHandle(thr->info->pep_manager, stanza);
Log(LOG_DEBUG, "PEP management: %fs", Elapsed(rectime));
if (args->verbosity >= PARSEE_VERBOSE_TIMINGS)
{
Log(LOG_DEBUG, "PEP management: %fs", Elapsed(rectime));
}
to = ParseeDecodeMXID(HashMapGet(stanza->attrs, "to"));
decode_from = ParseeLookupJID(from);
from_matrix = ParseeEncodeJID(args->config, decode_from, true);
room = ParseeFindDMRoom(args, to, from);
data = body ? ArrayGet(body->children, 0) : NULL;
Log(LOG_DEBUG, "Fetching user info: %fs", Elapsed(rectime));
if (args->verbosity >= PARSEE_VERBOSE_TIMINGS)
{
Log(LOG_DEBUG, "Fetching user info: %fs", Elapsed(rectime));
}
/* TODO: CLEAN THAT UP INTO A CREATEDM FUNCTION */
mroom_id = ParseeGetBridgedRoom(args, stanza);
Log(LOG_DEBUG, "Bridging event to '%s'...", mroom_id);
Log(LOG_DEBUG, "Fetching bridge: %fs", Elapsed(rectime));
if (args->verbosity >= PARSEE_VERBOSE_TIMINGS)
{
Log(LOG_DEBUG, "Fetching bridge: %fs", Elapsed(rectime));
}
if (!mroom_id && !room && !XMPPIsParseeStanza(stanza) &&
to && *to == '@')
{
@ -367,7 +382,10 @@ end_error:
StreamFlush(jabber->stream);
pthread_mutex_unlock(&jabber->write_lock);
XMLFreeElement(ps);
Log(LOG_DEBUG, "Subscription to XEP-0084: %fs", Elapsed(rectime));
if (args->verbosity >= PARSEE_VERBOSE_TIMINGS)
{
Log(LOG_DEBUG, "Subscription to XEP-0084: %fs", Elapsed(rectime));
}
Free(parsee);
Free(trim);
@ -380,7 +398,10 @@ end_error:
pthread_mutex_unlock(&thr->info->chk_lock);
LazyRegister(args, encoded, !chat ? res : NULL);
Log(LOG_DEBUG, "Matrix registration: %fs", Elapsed(rectime));
if (args->verbosity >= PARSEE_VERBOSE_TIMINGS)
{
Log(LOG_DEBUG, "Matrix registration: %fs", Elapsed(rectime));
}
reactions = XMLookForTKV(stanza,
"reactions", "xmlns", "urn:xmpp:reactions:0"
@ -539,7 +560,10 @@ end_error:
}
ProcessChatstates(args, stanza);
Log(LOG_DEBUG, "Chatstate management: %fs", Elapsed(rectime));
if (args->verbosity >= PARSEE_VERBOSE_TIMINGS)
{
Log(LOG_DEBUG, "Chatstate management: %fs", Elapsed(rectime));
}
end:
Free(mroom_id);