mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 12:15:12 +00:00
[RELEASE/FIX] Fix ban-unlinks, actually get 0.2.
This commit is contained in:
parent
960599d983
commit
dddf1680a0
2 changed files with 11 additions and 7 deletions
|
|
@ -13,10 +13,10 @@ commit done between releases.
|
|||
*There is currently no beta releases of Parsee*
|
||||
|
||||
## Alpha
|
||||
### v0.2.0[star-of-hope] <8/11/2024?>
|
||||
### v0.2.0[star-of-hope] <8/11/2024>
|
||||
Fixes some media metadata things, replaces the build system,
|
||||
tries out avatar support some more and speeds up Parsee a tad
|
||||
bit.
|
||||
tries out avatar support some more, MUC contexts, and speeds
|
||||
up Parsee just a bit. MbedTLS support is still highly unstable.
|
||||
#### New things
|
||||
- Start dealing with some basic PEP and vCard-based avatar
|
||||
support from both sides.
|
||||
|
|
@ -50,6 +50,8 @@ size on the fly, or having extensions being able to postprocess
|
|||
the stanza).
|
||||
- Parsee now stops when a stream error is received, instead of
|
||||
being in a limbo state.
|
||||
- The format for links has been changed to be slighlty *less*
|
||||
annoying.
|
||||
|
||||
#### Deprecated features
|
||||
- The old `build.c` and `Makefile`s used for building are removed,
|
||||
|
|
|
|||
|
|
@ -163,6 +163,8 @@ PresenceStanza(ParseeData *args, XMLElement *stanza, XMPPThread *thr)
|
|||
int power_level = 0;
|
||||
char *parsee = ParseeMXID(args);
|
||||
char *parsee_j = ParseeJID(args);
|
||||
char *muc = ParseeTrimJID(HashMapGet(stanza->attrs, "from"));
|
||||
char *parsee_muc = StrConcat(3, muc, "/", "parsee");
|
||||
|
||||
Free(trim);
|
||||
if (!item)
|
||||
|
|
@ -206,15 +208,12 @@ PresenceStanza(ParseeData *args, XMLElement *stanza, XMPPThread *thr)
|
|||
if (!StrEquals(HashMapGet(stanza->attrs, "to"), parsee_j) &&
|
||||
IsStatus(110))
|
||||
{
|
||||
char *muc = ParseeTrimJID(HashMapGet(stanza->attrs, "from"));
|
||||
char *usr = HashMapGet(stanza->attrs, "to");
|
||||
|
||||
/* Ask for voice in a visitor self-presence. We do not notify
|
||||
* the user, as an error MUST occur, which is handled and
|
||||
* logged out. */
|
||||
XMPPRequestVoice(args->jabber, usr, muc);
|
||||
|
||||
Free(muc);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -270,7 +269,8 @@ PresenceStanza(ParseeData *args, XMLElement *stanza, XMPPThread *thr)
|
|||
}
|
||||
}
|
||||
if (StrEquals(type, "unavailable") &&
|
||||
StrEquals(dst, parsee_j) && IsStatus(301))
|
||||
(StrEquals(jid, parsee_muc) || StrEquals(jid, parsee_j))
|
||||
&& IsStatus(301))
|
||||
{
|
||||
char *chat_id = ParseeGetFromRoomID(args, room);
|
||||
|
||||
|
|
@ -287,7 +287,9 @@ PresenceStanza(ParseeData *args, XMLElement *stanza, XMPPThread *thr)
|
|||
}
|
||||
|
||||
end_item:
|
||||
Free(muc);
|
||||
Free(from);
|
||||
Free(parsee_muc);
|
||||
Free(decode_from);
|
||||
Free(real_matrix);
|
||||
Free(matrix_user_pl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue