ref: 9a90c76eba79d5854e4ce47691f802bcdbf6c9ca biboumi/src/bridge/bridge.cpp -rw-r--r-- 48.9 KiB
Do not mark message to bare JID private/no-copy
f8da92a8 — Jonas Schäfer 2 years ago
Always send direct messages to the user’s bare JID

This has the following advantages:

- Works while all resources are offline (persistent channels)
- Helps with combating duplicate messages when sent to different
  resources, resources going offline, carbon-copying etc. etc.

As a side effect, this also makes the MUC PMs not be MUC PMs and
always be emitted from the server-wide JID of the sending user.

Fixes #3313.
212e8e59 — louiz’ 2 years ago
Merge remote-tracking branch 'linkmauve/die-gc1.0-die'
e9670889 — louiz’ 2 years ago
Make sure we keep the stable-id and origin-id nodes when required

See https://xmpp.org/extensions/xep-0359.html
76b81cec — louiz’ 2 years ago
Small trivial readability improvement
14fe9711 — Emmanuel Gil Peyrot 2 years ago
Don’t treat presence updates as MUC joins

If the user sends a directed presence to an unjoined MUC without a <x/>
element, send a presence error back instead of attempting to join it
again, as this is almost never what the user wants.

Fixes #3415.
f1936fdd — louiz’ 2 years ago
Actually fix that correctly instead of the opposite
8a6d053b — louiz’ 2 years ago
Remove trailing / of fulljids if IRC host is missing
224eb922 — louiz’ 2 years ago
Properly re-convert \01ACTION into a /me when reflected to the sender

fix #3382

It still needs to be fixed properly by cleaning the way we send the messages
in all direction etc. And this is ugly because, with just one message, we do
a conversion in one direction, and then re-convert in the other
direction. But at least it works and users will be happy, even if I’m not
entirely satisfied with the code.
a8ce138d — Jonas Schäfer 2 years ago
XEP-0410: set not-in-the-room error condition to not-acceptable

XEP-0410 demands that. This changes the error condition for all
pings to the room, even those which aren’t self-pings, if the
sender is not joined.

The conditions of XEP-0410 were based on observing existing
b68f3605 — Jonas Schäfer 2 years ago
XEP-0410: implement server-side optimisation for self-pings

This prevents the ping from round-tripping through IRC and
possibly a random other client of the user. Please see XEP-0410
for the rationale.

Fixes #3385.
3621458d — Jonas Schäfer 3 years ago
Do not send the IRC host directly as real JID of the user

Fixes #3381
b9f6fbd8 — louiz’ 3 years ago
Remove an unused function (and a useless debug log)
478619b1 — louiz’ 3 years ago
Trivial little syntax changes
248e25c2 — louiz’ 3 years ago
Replace a useless shared_ptr by a unique_ptr
0b51e382 — louiz’ 3 years ago
MaxHistoryLength now has some sensible default value if the user set a negative one
782732ba — louiz’ 3 years ago
Remove a bunch of useless empty lines
7a4cea42 — louiz’ 3 years ago
Reflect messages to XMPP only when they are actually sent
7f8a612c — louiz’ 4 years ago
Fix a warning (unused variable) in some build config
52166e07 — louiz’ 4 years ago
Trivial syntax improvements